Updated settings model boolean value conversion to include additional test values.

This commit is contained in:
Matt Scott 2023-04-11 07:05:46 -04:00
parent 4e54a2bb3f
commit feb62cf39f
No known key found for this signature in database
GPG Key ID: A9A0AFFC0E079001

View File

@ -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]