2020-04-19 20:35:49 +02:00
|
|
|
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
from django.core.management import BaseCommand
|
|
|
|
|
2020-04-20 01:26:53 +02:00
|
|
|
from ...forms import CurrentSurvey
|
2020-04-19 20:35:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
2020-04-22 17:53:42 +02:00
|
|
|
help = "Attribute to each first year member a bus for the WEI"
|
2020-04-19 20:35:49 +02:00
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
2020-04-22 17:53:42 +02:00
|
|
|
"""
|
|
|
|
Run the WEI algorithm to attribute a bus to each first year member.
|
|
|
|
"""
|
2020-04-19 20:35:49 +02:00
|
|
|
CurrentSurvey.get_algorithm_class()().run_algorithm()
|