mirror of
https://github.com/infinition/Bjorn.git
synced 2025-12-06 06:11:46 +00:00
Handles empty state values (null, "") in list based config items from being persisted
This commit is contained in:
4
utils.py
4
utils.py
@@ -728,6 +728,10 @@ method=auto
|
||||
elif isinstance(value, (int, float)):
|
||||
current_config[key] = value
|
||||
elif isinstance(value, list):
|
||||
# Lets boot any values in a list that are just empty strings
|
||||
for val in value[:]:
|
||||
if val == "" :
|
||||
value.remove(val)
|
||||
current_config[key] = value
|
||||
elif isinstance(value, str):
|
||||
if value.replace('.', '', 1).isdigit():
|
||||
|
||||
Reference in New Issue
Block a user