From c8a5c95f4c5e69321c140b5d8bc41bb8731f52d4 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 7 Nov 2024 14:53:13 +0330 Subject: [PATCH] feat: change the summary date format to be string! while filtering on qdrant data, it was only supporting integer, string, and boolean. --- .../hivemind_etl_helpers/src/db/telegram/transform/summary.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dags/hivemind_etl_helpers/src/db/telegram/transform/summary.py b/dags/hivemind_etl_helpers/src/db/telegram/transform/summary.py index 89865541..52f62241 100644 --- a/dags/hivemind_etl_helpers/src/db/telegram/transform/summary.py +++ b/dags/hivemind_etl_helpers/src/db/telegram/transform/summary.py @@ -32,9 +32,7 @@ def transform(self, summaries: dict[date, str]) -> list[Document]: + (day + timedelta(days=1)).strftime("%Y-%m-%d"), text=summary, metadata={ - "date": datetime.combine( - day, datetime.min.time(), tzinfo=timezone.utc - ).timestamp(), + "date": day.strftime("%Y-%m-%d"), }, ) summary_docs.append(document)