feature/search #24

Merged
v4l3n71n merged 2 commits from feature/search into master 2024-11-04 22:06:12 +00:00
Showing only changes of commit 115a5acb6f - Show all commits

View File

@ -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: 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 = { object_search = {
"$and": [ "$and": [
{
"$or": [
{"name": {"$regex": item}},
{"tags": {"$regex": item}},
{"organizers": {"$regex": item}}
]
},
{"status": {"$eq": status}}, {"status": {"$eq": status}},
{ {
"latitude": {"$gte": min_lat}, # Minimum latitude "latitude": {"$gte": min_lat}, # Minimum latitude