1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-08-18 09:38:41 +02:00

Move WEI scripts to the scripts app

This commit is contained in:
Yohann D'ANELLO
2020-04-23 14:33:41 +02:00
parent b9db26fa49
commit 578bd892a7
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.core.management import BaseCommand
from wei.forms import CurrentSurvey
class Command(BaseCommand):
help = "Attribute to each first year member a bus for the WEI"
def handle(self, *args, **options):
"""
Run the WEI algorithm to attribute a bus to each first year member.
"""
CurrentSurvey.get_algorithm_class()().run_algorithm()