From d6403fe34c1b97bbec81bdedaf183a10129a5cd9 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Fri, 9 Nov 2012 18:51:31 -0500 Subject: [PATCH] renmaing unusual to unicode, fixing syntax and removing id in enrolled_students query --- .../{find_unusual_certs.py => find_unicode_certs.py} | 0 .../management/commands/ungenerated_certs.py | 9 +-------- 2 files changed, 1 insertion(+), 8 deletions(-) rename lms/djangoapps/certificates/management/commands/{find_unusual_certs.py => find_unicode_certs.py} (100%) diff --git a/lms/djangoapps/certificates/management/commands/find_unusual_certs.py b/lms/djangoapps/certificates/management/commands/find_unicode_certs.py similarity index 100% rename from lms/djangoapps/certificates/management/commands/find_unusual_certs.py rename to lms/djangoapps/certificates/management/commands/find_unicode_certs.py diff --git a/lms/djangoapps/certificates/management/commands/ungenerated_certs.py b/lms/djangoapps/certificates/management/commands/ungenerated_certs.py index c61fd49760..06dd49ac8d 100644 --- a/lms/djangoapps/certificates/management/commands/ungenerated_certs.py +++ b/lms/djangoapps/certificates/management/commands/ungenerated_certs.py @@ -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()