summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files 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]: