]> git.parisson.com Git - teleforma.git/commitdiff
fix course pull command
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 17 Sep 2013 16:29:56 +0000 (18:29 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 17 Sep 2013 16:29:56 +0000 (18:29 +0200)
teleforma/management/commands/teleforma-pull-courses.py

index a42bf60bb52a3a3ab25e32662179e64c1c987d9a..2360b02b37ab7014c13d65a09d028c9a250a386d 100644 (file)
@@ -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)