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 b402fc9 commit a9daa5e
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 a9daa5e

Please sign in to comment.