From d0d0642bdfe1eb8ecc61c338c2ed22784c6bd235 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Wed, 23 Apr 2025 18:05:19 +0800 Subject: [PATCH] Update dashboard.py Fixed issue where new user can't finish welcome session --- src/dashboard.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 240d14d..2ae06c5 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1903,9 +1903,16 @@ class DashboardConfig: self.__config[section] = {} else: return False, "Section does not exist" - + + if not init: + print(key) + print(self.__config[section].keys()) + + print(value) + print(self.__config[section][key]) + if ((key not in self.__config[section].keys() and init) or - (key in self.__config[section].keys() and value != self.__config[section][key] and not init)): + (key in self.__config[section].keys())): if type(value) is bool: if value: self.__config[section][key] = "true"