1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 03:02:23 +00:00

Fix problems export

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2022-10-22 15:09:26 +02:00
parent 968162f34e
commit 8350960d5f
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -43,11 +43,11 @@ class Command(BaseCommand):
]
for problem_id, problem_name in enumerate(PROBLEMS):
dir_name = f"Problème n°{problem_id} : {problem_name}"
dir_name = f"Problème n°{problem_id + 1} : {problem_name}"
problem_dir = base_dir / dir_name
if not problem_dir.is_dir():
problem_dir.mkdir()
self.handle_problem(problem_id, problem_dir)
self.handle_problem(problem_id + 1, problem_dir)
def handle_tournament(self, tournament, base_dir):
name = tournament.name