Skip to content

Commit

Permalink
Fix unhappy mypy timezones
Browse files Browse the repository at this point in the history
This feels like it's not the right way to do it but converting event_tz
to be a pendulum timezone causes other errors. This seems to work so
ship it
  • Loading branch information
SamLR committed May 29, 2024
1 parent ba89b19 commit 35c4bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/schedule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ def workshop_steward_venue(venue_id: int):
.filter(
WorkshopProposal.type.in_(venue.allowed_types),
WorkshopProposal.is_accepted,
WorkshopProposal.scheduled_time > pendulum.now(event_tz),
event_tz.localize(WorkshopProposal.scheduled_time) > pendulum.now(event_tz.zone),
WorkshopProposal.scheduled_duration.isnot(None),
WorkshopProposal.hide_from_schedule.isnot(True),
WorkshopProposal.user_scheduled.isnot(True),
Expand Down

0 comments on commit 35c4bb4

Please sign in to comment.