mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 09:16:55 +00:00
Merge pull request #688 from donaldzou/fix-welcome-session-issue
Update dashboard.py
This commit is contained in:
commit
6f8b987d42
@ -1904,8 +1904,15 @@ class DashboardConfig:
|
|||||||
else:
|
else:
|
||||||
return False, "Section does not exist"
|
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
|
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 type(value) is bool:
|
||||||
if value:
|
if value:
|
||||||
self.__config[section][key] = "true"
|
self.__config[section][key] = "true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user