mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 14:12:45 +01:00
fix: evaluate str type
This commit is contained in:
1 parent
38883626f5
commit
e1d84ec7be
10 files changed
+23
-27
No files matched your search
@@ -61,10 +61,10 @@ def format_player_count(model: Gtk.TreeModel | None, control: list) -> str:
|
||||
hits = len(model)
|
||||
for row in model:
|
||||
players += row[4]
|
||||
players_pretty = pluralize("players", players)
|
||||
hits_pretty = pluralize("matches", hits)
|
||||
control_total = len(control)
|
||||
status = f"Showing {hits:n}/{control_total:n} {hits_pretty} with {players:n} {players_pretty}"
|
||||
players_pretty = pluralize("players", players)
|
||||
control_pretty = pluralize("matches", control_total)
|
||||
status = f"Showing {hits:n}/{control_total:n} {control_pretty} with {players:n} {players_pretty}"
|
||||
return status
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user