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
1 changed files with 2 additions and 2 deletions

View File

@ -43,11 +43,11 @@ class Command(BaseCommand):
] ]
for problem_id, problem_name in enumerate(PROBLEMS): 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 problem_dir = base_dir / dir_name
if not problem_dir.is_dir(): if not problem_dir.is_dir():
problem_dir.mkdir() 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): def handle_tournament(self, tournament, base_dir):
name = tournament.name name = tournament.name