fix refresh choice & battle tables + refactor loops

This commit is contained in:
Maxime Réaux 2026-03-19 16:20:34 +01:00
parent e7e2de9d0a
commit 719b0128ed
5 changed files with 32 additions and 35 deletions

View file

@ -66,7 +66,7 @@ class RoundController:
"Create forbidden",
str(e),
)
else:
if choice:
priority_name = (
camp.get_sector_name(choice.priority_sector_id)
if choice.priority_sector_id is not None
@ -124,7 +124,7 @@ class RoundController:
"Create forbidden",
str(e),
)
else:
if battle:
state_icon = Icons.get(IconName.ONGOING)
if battle.is_finished():
state_icon = Icons.get(IconName.DONE)