Compare commits

..

No commits in common. "0f8a5b32b0f64f2e3344d9e759f22721220bb591" and "f880b1e6a494828a5dd5eef2b3d6178dc2b5a848" have entirely different histories.

View File

@ -159,7 +159,7 @@ async def search_events(
date_event: Union[datetime, None] = None,
start_date: Union[datetime, None] = None,
end_date: Union[datetime, None] = None,
tags: Union[str, None] = None,
tags: Union[list[str], None] = None,
):
if limit < 1 or skip < 0 or limit < skip:
raise HTTPException(
@ -193,7 +193,7 @@ async def search_events(
filters.append(text_filter)
if tags is not None:
filters.append({"tags": {"$eq": tags}})
filters.append({"tags": {"$in": tags}})
# Combine filters
object_search = {"$and": filters} if filters else {}