caldav-event 1line

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2026-01-15 16:08:03 +01:00
parent 4ed036b5d0
commit 4f57d39171

View File

@@ -75,7 +75,7 @@ def get_ongoing_or_next_event(url, username, password):
return next_event_dict
except Exception as e:
print(f"Error accessing {url}: {str(e)[:30]}...")
print(f"Error accessing {url}: {str(e)}".splitlines()[0])
return None
def is_expired(event_dict: dict):
@@ -122,7 +122,7 @@ if __name__ == "__main__":
else:
time_string = "in " + hour_string + "and " + minu_string
print(f"\'{event_dict['event_name']}\' {action_string} {time_string}")
print(f"\'{event_dict['event_name']}\' {action_string} {time_string}".splitlines()[0])
'')
];
}