mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-06 12:54:05 +02:00
@ -3,12 +3,22 @@
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.management import BaseCommand
|
||||
from django.utils.formats import date_format
|
||||
from django.utils.translation import activate
|
||||
|
||||
from participation.models import Solution, Tournament
|
||||
from .models import Solution, Tournament
|
||||
|
||||
|
||||
PROBLEMS = [
|
||||
"Pliage de polygones",
|
||||
"Mélodie des hirondelles",
|
||||
"Professeur confiné",
|
||||
"Nain sans mémoire",
|
||||
"Bricolage microscopique",
|
||||
"Villes jumelées",
|
||||
"Promenade de chiens",
|
||||
"Persée et la Gorgone",
|
||||
]
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
@ -31,17 +41,6 @@ class Command(BaseCommand):
|
||||
if not base_dir.is_dir():
|
||||
base_dir.mkdir()
|
||||
|
||||
PROBLEMS = [
|
||||
"Agent 1234",
|
||||
"Bataille rangée",
|
||||
"C'est pas trop tôt !",
|
||||
"Chocolaterie de haut vol",
|
||||
"Stratégies féodales",
|
||||
"Le facteur n'est pas passé",
|
||||
"Vive les grenouilles libres !",
|
||||
"Télé truquée",
|
||||
]
|
||||
|
||||
for problem_id, problem_name in enumerate(PROBLEMS):
|
||||
dir_name = f"Problème n°{problem_id + 1} : {problem_name}"
|
||||
problem_dir = base_dir / dir_name
|
||||
|
Reference in New Issue
Block a user