mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 06:22:22 +00:00
Tweaks are done in the pool of the first room
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
ecf80f8b81
commit
720de380d1
@ -646,7 +646,7 @@ class Tournament(models.Model):
|
|||||||
for line in data:
|
for line in data:
|
||||||
trigram = line[0][-4:-1]
|
trigram = line[0][-4:-1]
|
||||||
participation = self.participations.get(team__trigram=trigram)
|
participation = self.participations.get(team__trigram=trigram)
|
||||||
pool1 = self.pools.get(round=1, participations=participation)
|
pool1 = self.pools.get(round=1, participations=participation, room=1)
|
||||||
tweak1_qs = Tweak.objects.filter(pool=pool1, participation=participation)
|
tweak1_qs = Tweak.objects.filter(pool=pool1, participation=participation)
|
||||||
tweak1_nb = int(line[2])
|
tweak1_nb = int(line[2])
|
||||||
if not tweak1_nb:
|
if not tweak1_nb:
|
||||||
@ -657,7 +657,7 @@ class Tournament(models.Model):
|
|||||||
'participation': participation})
|
'participation': participation})
|
||||||
|
|
||||||
if self.pools.filter(round=2, participations=participation).exists():
|
if self.pools.filter(round=2, participations=participation).exists():
|
||||||
pool2 = self.pools.get(round=2, participations=participation)
|
pool2 = self.pools.get(round=2, participations=participation, room=1)
|
||||||
tweak2_qs = Tweak.objects.filter(pool=pool2, participation=participation)
|
tweak2_qs = Tweak.objects.filter(pool=pool2, participation=participation)
|
||||||
tweak2_nb = int(line[4])
|
tweak2_nb = int(line[4])
|
||||||
if not tweak2_nb:
|
if not tweak2_nb:
|
||||||
|
Loading…
Reference in New Issue
Block a user