mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 08:11:35 +01:00
use app-config for caldav
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user