This commit is contained in:
Auric Vente 2024-07-21 01:47:34 -06:00
parent 18aab48651
commit 4fc8eeb886
2 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,7 @@ class Ant:
self.created = now self.created = now
self.updated = now self.updated = now
self.name = "" self.name = ""
self.status = "No update yet" self.status = ""
self.method = "" self.method = ""
self.triumph = 0 self.triumph = 0
self.hits = 0 self.hits = 0

View File

@ -34,6 +34,9 @@ class Game:
status = ant.status status = ant.status
color = None color = None
if (not ant.status) and (not ant.method):
status = "No update yet"
if ant.method == "triumph": if ant.method == "triumph":
total = f"({ant.triumph} total)" total = f"({ant.triumph} total)"
status = f"{Config.triumph_icon} {Config.triumph_message} {total}" status = f"{Config.triumph_icon} {Config.triumph_message} {total}"
@ -203,7 +206,6 @@ class Game:
ants = sorted(Ants.ants, key=lambda ant: ant.updated) ants = sorted(Ants.ants, key=lambda ant: ant.updated)
for ant in ants: for ant in ants:
if ant.status or ant.method:
Game.add_status(ant) Game.add_status(ant)
@staticmethod @staticmethod