fix issue on no title

This commit is contained in:
Ace 2023-09-25 13:36:39 +02:00 committed by GitHub
parent 5ca5ba644c
commit 5508274df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ class iCalendar:
events = (
{
'title': events.get('SUMMARY').lstrip(),
'title': events.get('SUMMARY').lstrip() if events.get('SUMMARY') else "",
'begin': arrow.get(events.get('DTSTART').dt).to(timezone) if (
arrow.get(events.get('dtstart').dt).format('HH:mm') != '00:00')