Skip to content

Commit

Permalink
promoted should always be there
Browse files Browse the repository at this point in the history
  • Loading branch information
maze-runnar authored Nov 12, 2020
1 parent 063bccc commit f079cc7
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 @@ -850,7 +850,6 @@ def query(self, view_kwargs):
Event.ends_at > current_time,
Event.state == 'published',
Event.privacy == 'public',
Event.tickets.any(and_(Ticket.deleted_at == None, Ticket.price > 0, Ticket.is_hidden == False)),
or_(
Event.is_promoted,
and_(
Expand All @@ -859,6 +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.price > 0, Ticket.is_hidden == False)),
),
),
)
Expand Down

0 comments on commit f079cc7

Please sign in to comment.