A team can't accept a problem that was previously *accepted* not the last purposed
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
31f5373652
commit
dfc45dbc93
|
@ -541,7 +541,7 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
|
|||
if await TeamDraw.objects.filter(participation_id=td.participation_id,
|
||||
round__draw__tournament=self.tournament,
|
||||
round__number=1,
|
||||
purposed=problem).aexists():
|
||||
accepted=problem).aexists():
|
||||
continue
|
||||
# Check that the problem is not already chosen once (or twice for a 5-teams pool)
|
||||
if await pool.teamdraw_set.filter(accepted=problem).acount() < (2 if pool.size == 5 else 1):
|
||||
|
|
Loading…
Reference in New Issue