mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 20:38:24 +02:00
Add position field for passages
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
@ -375,10 +375,11 @@ class Pool(models.Model):
|
||||
[4, 1, 2],
|
||||
]
|
||||
|
||||
for line in table:
|
||||
for i, line in enumerate(table):
|
||||
# Create the passage
|
||||
await Passage.objects.acreate(
|
||||
pool=self.associated_pool,
|
||||
position=i + 1,
|
||||
solution_number=tds[line[0]].accepted,
|
||||
defender=tds[line[0]].participation,
|
||||
opponent=tds[line[1]].participation,
|
||||
|
Reference in New Issue
Block a user