From 180cd7d81f72384e3a0963ed71a885c7f0597caf Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Tue, 28 Jul 2020 00:10:15 +0200 Subject: [PATCH] use app-config for caldav --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 9446457..68d2768 100755 --- a/server.py +++ b/server.py @@ -53,7 +53,9 @@ def updateEventsFromCalDav(): '''Load event from a remote calendar''' if app.config["SHOW_CALENDAR"]: - client = caldav.DAVClient(url=caldavUrl, username=caldavUsername, password=caldavPassword) + client = caldav.DAVClient(url=app.config["CALENDAR_URL"], + username=app.config["CALENDAR_USERNAME"], + password=app.config["CALENDAR_PASSWORD"]) authenticatedClient = client.principal() defaultCal = authenticatedClient.calendars()[0]