From 216b4bb3f2c4bef4c320f2579964b31f9d370d5b Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 28 Dec 2024 00:19:43 +0100 Subject: [PATCH] fix options regex --- app/routers/tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/tags.py b/app/routers/tags.py index aa965ec..227ba48 100644 --- a/app/routers/tags.py +++ b/app/routers/tags.py @@ -31,7 +31,7 @@ async def read_tags( if name: - filters.append({"name": {"$eq": name, "$options": "i"}}) + filters.append({"name": {"$regex": name, "$options": "i"}}) # Add ID filter if id_tags: