From feb62cf39f9f549a635152f0646316dc12112403 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Tue, 11 Apr 2023 07:05:46 -0400 Subject: [PATCH] Updated settings model boolean value conversion to include additional test values. --- powerdnsadmin/models/setting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/models/setting.py b/powerdnsadmin/models/setting.py index bd6265a..31f231b 100644 --- a/powerdnsadmin/models/setting.py +++ b/powerdnsadmin/models/setting.py @@ -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]