2021-06-14 19:45:36 +00:00
|
|
|
# Copyright (C) 2018-2021 by BDE ENS Paris-Saclay
|
2020-05-14 13:16:10 +00:00
|
|
|
# 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()
|