summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/user_session.py6
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: