Skip to content

Commit

Permalink
Merge pull request #166 from kaelancotter/master
Browse files Browse the repository at this point in the history
(I wasn't aware you) Can't compare timezone aware and tz=None datetime objects
  • Loading branch information
Eli Selkin authored Apr 24, 2019
2 parents a1029ac + 71ea78c commit 4d2bebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CouncilTag/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def ready(self):
if exists is None:
r.set(f"{committee.name}-{agenda.meeting_time}",
"true", ex=3 * 60)
print("XXXX:", dt_utc, datetime.utcnow())
if dt_utc > datetime.utcnow():
print("XXXX:", dt_utc, datetime.now(tz=pytz.timezone('UTC')))
if dt_utc > datetime.now(tz=pytz.timezone('UTC')):
schedule_process_pdf.apply_async(
(committee.name, agenda.meeting_id), eta=dt_utc)
log.error(f"scheduled pdf processing")
Expand Down

0 comments on commit 4d2bebb

Please sign in to comment.