From 7f320f2c40827cd123047f17c58d701540b825c2 Mon Sep 17 00:00:00 2001 From: uommou Date: Sun, 7 Apr 2024 20:03:04 +0900 Subject: [PATCH] =?UTF-8?q?[hotfix]=2010=EC=9D=BC=20=EA=B8=B0=EC=A4=80=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=EB=A5=BC=201=EC=9D=BC=20=EA=B8=B0=EC=A4=80?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/database/chroma_db.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/database/chroma_db.py b/app/database/chroma_db.py index 2351fee..a54f229 100644 --- a/app/database/chroma_db.py +++ b/app/database/chroma_db.py @@ -101,12 +101,13 @@ async def db_monthly_tag_schedule(user_data: ReportTagsRequestDTO): [ {"member": {"$eq": int(member)}}, {"year": {"$eq": year}}, - {"$or": - [{"$and": - [{"month": {"$eq": month-1}}, {"date": {"$gte": 10}}]}, - {"$and": - [{"month": {"$eq": month}}, {"date": {"$lt": 10}}]} - ]} + {"month": {"$eq": month - 1}} + # {"$or": + # [{"$and": + # [{"month": {"$eq": month-1}}, {"date": {"$gte": 10}}]}, + # {"$and": + # [{"month": {"$eq": month}}, {"date": {"$lt": 10}}]} + # ]} ] } # where_document={"$contains":"search_string"} # optional filter