From 491027a814df3f8d01c75826b4840aadbb9f6731 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Wed, 16 Jan 2013 17:34:48 -0500 Subject: [PATCH] Allow generation of certificates if they are in the generating state --- lms/djangoapps/certificates/queue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/certificates/queue.py b/lms/djangoapps/certificates/queue.py index 52a8dcae36..b9316220fa 100644 --- a/lms/djangoapps/certificates/queue.py +++ b/lms/djangoapps/certificates/queue.py @@ -192,7 +192,7 @@ class XQueueCertInterface(object): Will change the certificate status to 'deleting'. Certificate must be in the 'unavailable', 'error', - or 'deleted' state. + 'deleted' or 'generating' state. If a student has a passing grade a request will made for a new cert @@ -204,7 +204,8 @@ class XQueueCertInterface(object): """ - VALID_STATUSES = [status.unavailable, status.deleted, status.error, + VALID_STATUSES = [ status.generating, + status.unavailable, status.deleted, status.error, status.notpassing] cert_status = certificate_status_for_student(