From 2614357a129b0c93b0ae21f98959b6353ef15b08 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Wed, 15 Jan 2025 19:03:52 +0100 Subject: [PATCH] Store base URL to allow switching to other NC installations --- scripts/nc-cal-sync/calendar_synchronizer/login.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/nc-cal-sync/calendar_synchronizer/login.py b/scripts/nc-cal-sync/calendar_synchronizer/login.py index 6ee8720..dfa07b4 100644 --- a/scripts/nc-cal-sync/calendar_synchronizer/login.py +++ b/scripts/nc-cal-sync/calendar_synchronizer/login.py @@ -49,13 +49,14 @@ def run(args): l.info('Login successful') class LoginData: - def __init__(self, loginName, appPassword): + def __init__(self, loginName, appPassword, base): self.loginName = loginName self.appPassword = appPassword + self.base = base def loadLoginData(): with open('login.json', 'r') as f: data = json.load(f) - return LoginData(data['loginName'], data['appPassword']) + return LoginData(data['loginName'], data['appPassword'], data['base']) \ No newline at end of file