list round choices ; fix UI

This commit is contained in:
Maxime Réaux 2026-01-30 10:52:19 +01:00
parent 032ab2d2c4
commit 723723dea1
14 changed files with 683 additions and 99 deletions

View file

@ -290,3 +290,15 @@ class Model:
def remove_round(self, round_id: str):
camp = self.get_campaign_by_round(round_id)
camp.remove_round(round_id)
# Choices methods
def get_round_choices_data(self, round_id: str):
camp = self.get_campaign_by_round(round_id)
rnd = self.get_round(round_id)
participants = camp.participants.values()
sectors = [
s for s in camp.sectors.values()
if s.round_id == round_id
]
return camp, rnd, participants, sectors