From 4c6a12e8e7df077f66c88fb552c626d51a0f8b46 Mon Sep 17 00:00:00 2001 From: sundaram Date: Tue, 17 Nov 2020 21:32:17 +0530 Subject: [PATCH 1/2] required twitter link --- app/api/events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/events.py b/app/api/events.py index 431a5311c1..72f0b54a42 100644 --- a/app/api/events.py +++ b/app/api/events.py @@ -859,6 +859,7 @@ def query(self, view_kwargs): Event.event_topic_id != None, Event.event_sub_topic_id != None, Event.tickets.any(and_(Ticket.deleted_at == None, Ticket.is_hidden == False, Ticket.sales_ends_at > current_time)), + Event.social_link.any(and_(SocialLink.name=="twitter")) ), ), ) From c9771c8f3d2af5dffa2fba03bc05ed274a68e1b8 Mon Sep 17 00:00:00 2001 From: sundaram Date: Tue, 17 Nov 2020 22:01:45 +0530 Subject: [PATCH 2/2] removing and --- app/api/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/events.py b/app/api/events.py index 72f0b54a42..a679f5fa46 100644 --- a/app/api/events.py +++ b/app/api/events.py @@ -859,7 +859,7 @@ def query(self, view_kwargs): Event.event_topic_id != None, Event.event_sub_topic_id != None, Event.tickets.any(and_(Ticket.deleted_at == None, Ticket.is_hidden == False, Ticket.sales_ends_at > current_time)), - Event.social_link.any(and_(SocialLink.name=="twitter")) + Event.social_link.any(SocialLink.name=="twitter") ), ), )