renmaing unusual to unicode, fixing syntax and removing id in
enrolled_students query
This commit is contained in:
@@ -7,13 +7,6 @@ from django.contrib.auth.models import User
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
help = """
|
||||
Find all students that have need certificates
|
||||
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
|
||||
@@ -24,7 +17,7 @@ class Command(BaseCommand):
|
||||
def handle(self, *args, **options):
|
||||
|
||||
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(
|
||||
"groups").order_by('username')
|
||||
xq = XQueueCertInterface()
|
||||
|
||||
Reference in New Issue
Block a user