Skip to content
Snippets Groups Projects
Unverified Commit 62de1f20 authored by Zainab Amir's avatar Zainab Amir Committed by GitHub
Browse files

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
parent ff60c71f
Branches
Tags release-2020-03-17-04.34
No related merge requests found
......@@ -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()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment