From: Guillaume Pellerin Date: Tue, 17 Sep 2013 16:29:56 +0000 (+0200) Subject: fix course pull command X-Git-Tag: 1.3-TC~22^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f84a3175647563277b7fb72d863ea5f46b9e4d4a;p=teleforma.git fix course pull command --- diff --git a/teleforma/management/commands/teleforma-pull-courses.py b/teleforma/management/commands/teleforma-pull-courses.py index a42bf60b..2360b02b 100644 --- a/teleforma/management/commands/teleforma-pull-courses.py +++ b/teleforma/management/commands/teleforma-pull-courses.py @@ -10,10 +10,14 @@ from teleforma.views import * import logging import codecs + class Command(BaseCommand): help = "pull teleforma courses from a remote host" admin_email = 'webmaster@parisson.com' + args = "organization_name department_name" def handle(self, *args, **options): + organization_name = args[0] + department_name = args[1] view = CourseListView() - view.pull() + view.pull(organization_name, department_name)