Skip to content

Commit

Permalink
[hotfix] 10일 기준 조회를 1일 기준으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
uommou committed Apr 7, 2024
1 parent 945999e commit 7f320f2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/database/chroma_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f320f2

Please sign in to comment.