added datetime tracking
This commit is contained in:
9
app/dater.py
Normal file
9
app/dater.py
Normal 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}"
|
||||
Reference in New Issue
Block a user