mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-04 19:15:30 +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