diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-10-12 21:18:39 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2015-10-12 21:18:39 +0200 |
commit | af8a603bd4821ee1228df92b28fd169ea2eee4e0 (patch) | |
tree | 7a6f87e32af46221841b0504bdf1cfd1f36e0a5b /server | |
parent | 1a0b79f1a158e5627d0b74c25918b63963ef1a29 (diff) |
Rename lang setting to gui_lang
Diffstat (limited to 'server')
-rw-r--r-- | server/user_session.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/user_session.py b/server/user_session.py index b678cea..9338c2c 100644 --- a/server/user_session.py +++ b/server/user_session.py @@ -74,7 +74,7 @@ class UserSession(object): cur.execute('update codeq_user set last_login = %s where id = %s', (str(now), row[0],)) self.uid = row[0] self.username = username - self.settings = {'lang': row[5]} + self.settings = {'gui_lang': row[5]} return row[2], row[3], row[4], now else: raise AuthenticationFailed('Password mismatch') @@ -102,7 +102,7 @@ class UserSession(object): raise SignupFailed('Sign-up failed') self.uid = row[0] self.username = username - self.settings = {'lang': lang} + self.settings = {'gui_lang': lang} finally: cur.close() finally: @@ -142,7 +142,7 @@ class UserSession(object): try: cur = conn.cursor() try: - cur.execute("update codeq_user set gui_lang = %s where id = %s", (self.settings['lang'], self.uid)) + cur.execute("update codeq_user set gui_lang = %s where id = %s", (self.settings['gui_lang'], self.uid)) finally: cur.close() finally: |