mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-27 15:54:16 +00:00
Completed basic handling of authentication settings save process to the database.
This commit is contained in:
@@ -431,6 +431,10 @@ class Setting(db.Model):
|
||||
|
||||
if value in ['True', 'False']:
|
||||
value = strtobool(value)
|
||||
elif value.isdecimal() and '.' in value:
|
||||
value = float(value)
|
||||
elif value.isnumeric():
|
||||
value = int(value)
|
||||
|
||||
result[record.name] = value
|
||||
|
||||
|
Reference in New Issue
Block a user