Skip to content

Commit

Permalink
Merge pull request #322 from TogetherCrew/feat/313-telegram-summarizer
Browse files Browse the repository at this point in the history
feat: change the summary date format to be string!
  • Loading branch information
amindadgar authored Nov 7, 2024
2 parents c1d0be3 + c8a5c95 commit f99eefe
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f99eefe

Please sign in to comment.