summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-04-03 04:28:40 -0400
committercyfraeviolae <cyfraeviolae>2024-04-03 04:28:40 -0400
commit88eb98c35ba8efd62ac7549ace85b6c40a1a534c (patch)
tree4eb49d8e39a87bc55fdf3af2a02fbf8e99a3d1ac
parent3b1ab2aff54c9bf9bc8f400b5a7d7b6c33f98af8 (diff)
cal
-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]: