From c60277f4d3c0a25c6a7dbe633d70aa4d93ce3141 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 5 Jan 2020 14:07:26 +0100 Subject: [PATCH] Capitalize language selection in User settings Remove sql statement from log.debug statement upon creation of new column in settings database --- cps/config_sql.py | 2 +- cps/templates/user_edit.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/config_sql.py b/cps/config_sql.py index e940c450..c00bc213 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -276,7 +276,7 @@ def _migrate_table(session, orm_class): try: session.query(column).first() except exc.OperationalError as err: - log.debug("%s: %s", column_name, err) + log.debug("%s: %s", column_name, err.args[0]) if column.default is not None: if sys.version_info < (3, 0): if isinstance(column.default.arg,unicode): diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index 6cbc6a64..b760a0f7 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -30,7 +30,7 @@