mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40: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'):
|
||||
result = result.value
|
||||
return strtobool(result) if result in [
|
||||
'True', 'False'
|
||||
'True', 'False', 'true', 'false', '1', '0'
|
||||
] else result
|
||||
else:
|
||||
return self.defaults[setting]
|
||||
|
Loading…
Reference in New Issue
Block a user