mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Updated settings model boolean value conversion to include additional test values.
This commit is contained in:
parent
4e54a2bb3f
commit
feb62cf39f
@ -411,7 +411,7 @@ class Setting(db.Model):
|
|||||||
if hasattr(result, 'value'):
|
if hasattr(result, 'value'):
|
||||||
result = result.value
|
result = result.value
|
||||||
return strtobool(result) if result in [
|
return strtobool(result) if result in [
|
||||||
'True', 'False'
|
'True', 'False', 'true', 'false', '1', '0'
|
||||||
] else result
|
] else result
|
||||||
else:
|
else:
|
||||||
return self.defaults[setting]
|
return self.defaults[setting]
|
||||||
|
Loading…
Reference in New Issue
Block a user