Commit d6403fe3 by John Jarvis

renmaing unusual to unicode, fixing syntax and removing id in

enrolled_students query
parent 2c41b94d
...@@ -10,13 +10,6 @@ class Command(BaseCommand): ...@@ -10,13 +10,6 @@ class Command(BaseCommand):
help = """ help = """
Find all students that have need certificates Find all students that have need certificates
and put certificate requests on the queue and put certificate requests on the queue
"""
def handle(self, *args, **options):
help = """
Find all students that have need certificates
and put certificate requests on the queue
This is only for BerkeleyX/CS169.1x/2012_Fall This is only for BerkeleyX/CS169.1x/2012_Fall
""" """
...@@ -24,7 +17,7 @@ class Command(BaseCommand): ...@@ -24,7 +17,7 @@ class Command(BaseCommand):
def handle(self, *args, **options): def handle(self, *args, **options):
course_id = 'BerkeleyX/CS169.1x/2012_Fall' course_id = 'BerkeleyX/CS169.1x/2012_Fall'
enrolled_students = User.objects.filter(id=444894, enrolled_students = User.objects.filter(
courseenrollment__course_id=course_id).prefetch_related( courseenrollment__course_id=course_id).prefetch_related(
"groups").order_by('username') "groups").order_by('username')
xq = XQueueCertInterface() xq = XQueueCertInterface()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment