use app-config for caldav

This commit is contained in:
2020-07-28 00:10:15 +02:00
parent 6a74b4425e
commit 180cd7d81f

View File

@@ -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]