Set a configuration setting for the current user.
(setting, value)
| 66 | |
| 67 | |
| 68 | def store_setting(setting, value): |
| 69 | """Set a configuration setting for the current user.""" |
| 70 | data = Setting(user_id=current_user.id, setting=setting, value=value) |
| 71 | |
| 72 | db.session.merge(data) |
| 73 | db.session.commit() |
| 74 | |
| 75 | |
| 76 | def get_setting(setting, default=''): |
no test coverage detected