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
This commit is contained in:
Zainab Amir
2019-11-07 22:19:21 +05:00
committed by GitHub
parent ff60c71fe6
commit 62de1f20d1

View File

@@ -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()