added datetime tracking

This commit is contained in:
2026-01-22 20:09:20 +01:00
parent b56fe56f84
commit 00ab59f0e4
8 changed files with 36 additions and 6 deletions

9
app/dater.py Normal file
View File

@@ -0,0 +1,9 @@
from ics import Calendar
import utils
def date_calendar(calendar: Calendar):
time = utils.format_datetime("%d/%m/%Y %H:%M:%S")
for event in calendar.events:
old_description = f"event.description\n" if event.description else ""
event.description = f"{old_description}Retrieved on: {time}"