From: Guillaume Pellerin Date: Wed, 28 Dec 2016 00:37:40 +0000 (+0100) Subject: copy more seminars X-Git-Tag: 2.8.1-pro~224 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4dd701a3ea3738a8ce36d192731865d60a77f9ea;p=teleforma.git copy more seminars --- diff --git a/teleforma/management/commands/teleforma-copy-seminars.py b/teleforma/management/commands/teleforma-copy-seminars.py index 49b74bdd..88502bb0 100644 --- a/teleforma/management/commands/teleforma-copy-seminars.py +++ b/teleforma/management/commands/teleforma-copy-seminars.py @@ -30,10 +30,10 @@ class Command(BaseCommand): help = """Copy some seminars and their content thanks to their expiry date year""" args = ['site_domain from_year to_year log_file'] language_code = 'fr_FR' - # more = ['deontologie_1', 'deontologie_2', 'commercial_2', 'Contrats_4', 'PAC_5'] + more = ['deontologie_1', 'deontologie_2', 'commercial_2', 'Contrats_4', 'PAC_5'] more = [] site = Site.objects.get_current() - + def handle(self, *args, **kwargs): to_year = int(args[-2]) from_year = int(args[-3])