1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 11:18:27 +02:00

Add export photo authorizations script

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-10-28 21:33:58 +01:00
parent ab2e49e8fb
commit b053a47a19
2 changed files with 36 additions and 2 deletions

View File

@ -11,10 +11,9 @@ from participation.models import Solution, Tournament
class Command(BaseCommand):
def handle(self, *args, **kwargs):
activate(settings.PROBLEMS)
base_dir = Path(__file__).parent.parent.parent.parent
base_dir /= "output"
base_dir /= "solutions"
if not base_dir.is_dir():
base_dir.mkdir()
base_dir /= "Par équipe"