list round choices ; fix UI
This commit is contained in:
parent
032ab2d2c4
commit
723723dea1
14 changed files with 683 additions and 99 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue