Show More
@@ -95,8 +95,11 b' class SettingsModel(BaseModel):' | |||||
95 |
|
95 | |||
96 | for row in r: |
|
96 | for row in r: | |
97 | v = row.app_settings_value |
|
97 | v = row.app_settings_value | |
98 |
if v in [' |
|
98 | if v in ['true', 'yes', 'on', 'y', 't', '1']: | |
99 |
v = |
|
99 | v = True | |
|
100 | elif v in ['false', 'no', 'off', 'n', 'f', '0']: | |||
|
101 | v = False | |||
|
102 | ||||
100 | fd.update({row.app_settings_name:v}) |
|
103 | fd.update({row.app_settings_name:v}) | |
101 |
|
104 | |||
102 | return fd |
|
105 | return fd |
General Comments 0
You need to be logged in to leave comments.
Login now