From fa070800a4a06d1473ded6c3e63a0ed466fbb199 Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 10 Oct 2024 16:42:35 +0530 Subject: [PATCH] (20241010) Custom filter logs bug fixed. --- api/logs/blueprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logs/blueprint.py b/api/logs/blueprint.py index 6c82ba6..ece0ace 100644 --- a/api/logs/blueprint.py +++ b/api/logs/blueprint.py @@ -322,7 +322,7 @@ async def get_logs_by_filter( fetched_logs = await current_app.mongo.find_many( collection = "logs", - filter = current_app.mongo.dict_to_dot_notation(inbound_data["filter"]), + filter = inbound_data["filter"], projection = inbound_data.get("projection", {"_id": False}), sort = inbound_data.get("sort", {"_id": -1}), limit = inbound_data.get("limit", 25),