mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -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 = ''
|
||||
|
||||
# lookup key in secondary cache
|
||||
if SETTINGS_SECONDARYCACHE.get(key) is not None:
|
||||
if key in SETTINGS_SECONDARYCACHE:
|
||||
return SETTINGS_SECONDARYCACHE[key]
|
||||
|
||||
# Prefer conf.mySettings if available
|
||||
if hasattr(conf, "mySettings") and conf.mySettings:
|
||||
# conf.mySettings is a list of tuples, find by key (tuple[0])
|
||||
|
||||
Reference in New Issue
Block a user