1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-02 13:16:54 +00:00
nk20/apps/wei/management/commands/wei_algorithm.py

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