Show More
@@ -356,11 +356,10 b' def config_data_from_db(clear_session=Tr' | |||
|
356 | 356 | |
|
357 | 357 | ui_settings = settings_model.get_ui_settings() |
|
358 | 358 | |
|
359 | ui_data = [] | |
|
359 | 360 | for setting in ui_settings: |
|
360 | 361 | if setting.active: |
|
361 | log.debug( | |
|
362 | 'settings ui from db: [%s] %s=%s', | |
|
363 | setting.section, setting.key, setting.value) | |
|
362 | ui_data.append((setting.section, setting.key, setting.value)) | |
|
364 | 363 | config.append(( |
|
365 | 364 | safe_str(setting.section), safe_str(setting.key), |
|
366 | 365 | safe_str(setting.value))) |
@@ -369,6 +368,9 b' def config_data_from_db(clear_session=Tr' | |||
|
369 | 368 | # handles that |
|
370 | 369 | config.append(( |
|
371 | 370 | safe_str(setting.section), safe_str(setting.key), False)) |
|
371 | log.debug( | |
|
372 | 'settings ui from db: %s', | |
|
373 | ','.join(map(lambda s: '[{}] {}={}'.format(*s), ui_data))) | |
|
372 | 374 | if clear_session: |
|
373 | 375 | meta.Session.remove() |
|
374 | 376 |
General Comments 0
You need to be logged in to leave comments.
Login now