nk20/apps/wei/management/commands/wei_algorithm.py

17 lines
478 B
Python
Raw Normal View History

2020-04-19 18:35:49 +00: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-19 23:26:53 +00:00
from ...forms import CurrentSurvey
2020-04-19 18:35:49 +00:00
class Command(BaseCommand):
2020-04-22 15:53:42 +00:00
help = "Attribute to each first year member a bus for the WEI"
2020-04-19 18:35:49 +00:00
def handle(self, *args, **options):
2020-04-22 15:53:42 +00:00
"""
Run the WEI algorithm to attribute a bus to each first year member.
"""
2020-04-19 18:35:49 +00:00
CurrentSurvey.get_algorithm_class()().run_algorithm()