Skip to content

Commit

Permalink
feat: add last time sync in calendar description
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed Mar 31, 2024
1 parent f353b07 commit 138c85b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/calendar_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ def get_calendar_text(self, username: str, password: str, team_id: str | None =
cal.add("method", "PUBLISH")
cal.add("x-wr-calname", "SportEasy Calendar")
cal.add("x-wr-timezone", "Europe/Paris")
cal.add("x-wr-caldesc", "SportEasy calendar as ics")

formatted_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
cal.add("x-wr-caldesc", f"SportEasy Calendar | Last sync: {formatted_time}")
cal.add("REFRESH-INTERVAL;VALUE=DURATION", "PT8H")
cal.add("X-PUBLISHED-TTL", "PT8H")

Expand Down

0 comments on commit 138c85b

Please sign in to comment.