Completed basic handling of authentication settings save process to the database.

This commit is contained in:
Matt Scott
2023-04-10 13:24:42 -04:00
parent 2e30b83545
commit 6a19ed2903
3 changed files with 26 additions and 19 deletions

View File

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