move wei script to wei app
This commit is contained in:
parent
0776ed416c
commit
110ef79951
4 changed files with 157 additions and 1 deletions
15
apps/wei/management/commands/wei_algorithm.py
Normal file
15
apps/wei/management/commands/wei_algorithm.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue