Skip to content

Commit

Permalink
fix: correct expiration date calculation for ID verification
Browse files Browse the repository at this point in the history
  • Loading branch information
igobranco committed Jan 3, 2025
1 parent 5ef3cac commit 245f480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nau_openedx_extensions/verify_student/id_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def verification_active_predicate(verification):
if verification_active:
log.info("User %d already has an ID verification", user_id)
else:
expiration_date = now + timedelta(days=36500) # 100 years
expiration_date = now + timedelta(days=365 * 100 + 100/4) # 365 days * 100 years + leap year days
log.info("Create user ID Verification for %d", user_id)
create_user_id_verification(
user_id,
Expand Down

0 comments on commit 245f480

Please sign in to comment.