diff options
author | cyfraeviolae <cyfraeviolae> | 2024-04-03 04:28:40 -0400 |
---|---|---|
committer | cyfraeviolae <cyfraeviolae> | 2024-04-03 04:28:40 -0400 |
commit | 88eb98c35ba8efd62ac7549ace85b6c40a1a534c (patch) | |
tree | 4eb49d8e39a87bc55fdf3af2a02fbf8e99a3d1ac | |
parent | 3b1ab2aff54c9bf9bc8f400b5a7d7b6c33f98af8 (diff) |
cal
-rw-r--r-- | app.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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]: |