mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update server/helper.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -377,9 +377,8 @@ def get_setting_value(key):
|
|||||||
value = ''
|
value = ''
|
||||||
|
|
||||||
# lookup key in secondary cache
|
# lookup key in secondary cache
|
||||||
if SETTINGS_SECONDARYCACHE.get(key) is not None:
|
if key in SETTINGS_SECONDARYCACHE:
|
||||||
return SETTINGS_SECONDARYCACHE[key]
|
return SETTINGS_SECONDARYCACHE[key]
|
||||||
|
|
||||||
# Prefer conf.mySettings if available
|
# Prefer conf.mySettings if available
|
||||||
if hasattr(conf, "mySettings") and conf.mySettings:
|
if hasattr(conf, "mySettings") and conf.mySettings:
|
||||||
# conf.mySettings is a list of tuples, find by key (tuple[0])
|
# conf.mySettings is a list of tuples, find by key (tuple[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user