From 115a5acb6faa6ba842f2d34414c4c2c2849ab90c Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 4 Nov 2024 22:58:51 +0100 Subject: [PATCH] add another object_search --- app/routers/events.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/routers/events.py b/app/routers/events.py index 52610e8..73e24a3 100644 --- a/app/routers/events.py +++ b/app/routers/events.py @@ -55,13 +55,6 @@ async def search_events(authorize: Annotated[bool, Depends(permissions_checker.P if min_lat is not None and max_lat is not None and min_lon is not None and max_lon is not None: object_search = { "$and": [ - { - "$or": [ - {"name": {"$regex": item}}, - {"tags": {"$regex": item}}, - {"organizers": {"$regex": item}} - ] - }, {"status": {"$eq": status}}, { "latitude": {"$gte": min_lat}, # Minimum latitude