Skip to content

Commit

Permalink
fix: sales time of the ticket is passed, don't show event (#7439)
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar authored Nov 12, 2020
1 parent ef592f0 commit bf35477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def query(self, view_kwargs):
Event.event_type_id != None,
Event.event_topic_id != None,
Event.event_sub_topic_id != None,
Event.tickets.any(and_(Ticket.deleted_at == None, Ticket.is_hidden == False)),
Event.tickets.any(and_(Ticket.deleted_at == None, Ticket.is_hidden == False, Ticket.sales_ends_at > current_time)),
),
),
)
Expand Down

0 comments on commit bf35477

Please sign in to comment.