Skip to content

Commit

Permalink
fix name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
urvdp committed Oct 17, 2024
1 parent 1788208 commit 2028321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spz/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""Implements mail generators."""

from datetime import datetime, timezone
from datetime import datetime, timezone as dt_timezone
from pytz import timezone, utc

from flask import render_template
Expand All @@ -14,7 +14,7 @@

def generate_status_mail(applicant, course, time=None, restock=False):
"""Generate mail to notify applicants about their new attendance status."""
time = time or datetime.now(timezone.utc).replace(tzinfo=None)
time = time or datetime.now(dt_timezone.utc).replace(tzinfo=None)
attendance = models.Attendance.query \
.filter(models.Attendance.applicant_id == applicant.id, models.Attendance.course_id == course.id) \
.first()
Expand Down

0 comments on commit 2028321

Please sign in to comment.