From 62de1f20d194e2b5e4e04744dbb6b66bd3eba3c1 Mon Sep 17 00:00:00 2001 From: Zainab Amir <40633976+zainab-amir@users.noreply.github.com> Date: Thu, 7 Nov 2019 22:19:21 +0500 Subject: [PATCH] Add logs to verify audit cert cutoff date (#22265) Users were awareded audit certificate recently. Adding logs to verify that cutoff date for awarding certificate is correct PROD-978 --- lms/djangoapps/certificates/queue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lms/djangoapps/certificates/queue.py b/lms/djangoapps/certificates/queue.py index f692c429f5..59b36a5081 100644 --- a/lms/djangoapps/certificates/queue.py +++ b/lms/djangoapps/certificates/queue.py @@ -375,6 +375,7 @@ class XQueueCertInterface(object): # already marked as ineligible -- we don't want to mark # existing audit certs as ineligible. cutoff = settings.AUDIT_CERT_CUTOFF_DATE + LOGGER.info(u"Audit certificates cutoff date {}".format(cutoff)) if (cutoff and cert.created_date >= cutoff) and not is_eligible_for_certificate: cert.status = status.audit_passing if passing else status.audit_notpassing cert.save()