1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-06 23:33:01 +00:00
nk20/apps/wei/management/commands/wei_algorithm.py

17 lines
478 B
Python
Raw Normal View History

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()