Skip to content

Commit 40a2e2a

Browse files
committed
feat: add filter to exclude gbfs feeds in get_feeds_query helper
1 parent fabc85c commit 40a2e2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

functions-python/helpers/query_helper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ def get_feeds_query(
109109

110110
conditions = []
111111

112+
if data_type is None:
113+
conditions.append(model.data_type.in_(["gtfs", "gtfs_rt"]))
114+
logging.info("Added filter to exclude gbfs feeds")
115+
112116
if operation_status:
113117
conditions.append(model.operational_status == operation_status)
114118
logging.info("Added operational_status filter: %s", operation_status)

0 commit comments

Comments
 (0)