From 1d7ec6198220983a13883a57e999fe573d5f0bd6 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Mon, 16 Dec 2024 23:53:46 +0100 Subject: [PATCH] add in --- app/routers/events.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routers/events.py b/app/routers/events.py index 7c8b3a7..7cfa3ec 100644 --- a/app/routers/events.py +++ b/app/routers/events.py @@ -192,6 +192,9 @@ async def search_events( if text_filter: filters.append(text_filter) + if tags is not None: + filters.append({"tags": {"$in": tags}}) + # Combine filters object_search = {"$and": filters} if filters else {}