From 88eb98c35ba8efd62ac7549ace85b6c40a1a534c Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 04:28:40 -0400 Subject: cal --- app.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 798d4fd..6153cc9 100644 --- a/app.py +++ b/app.py @@ -67,8 +67,7 @@ class Event(Base): fmt = "%Y%m%dT%H%M%SZ" start = self.time.strftime(fmt) now = datetime.datetime.now().strftime(fmt) - return f''' -BEGIN:VCALENDAR + return f'''BEGIN:VCALENDAR VERSION:2.0 PRODID:custom BEGIN:VEVENT @@ -79,8 +78,7 @@ DTSTAMP:{now} SUMMARY:{self.title} UID:{self.iden} END:VEVENT -END:VCALENDAR - ''' +END:VCALENDAR''' @asynccontextmanager async def db_connection(app: Litestar) -> AsyncGenerator[None, None]: -- cgit v1.2.3