summaryrefslogtreecommitdiff
path: root/server/user_session.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 12:16:48 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-08-28 12:16:48 +0200
commita507fee954721ec1e79a5277e86f7a4a44ae1a77 (patch)
treed14884863f95b55ee844b9b815411ea807b5c055 /server/user_session.py
parent8cd70975854ddefaf9dadbade1559059ad781f3c (diff)
Fix SQL in UserSession.update_solution
Diffstat (limited to 'server/user_session.py')
-rw-r--r--server/user_session.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/user_session.py b/server/user_session.py
index 0abc421..a463903 100644
--- a/server/user_session.py
+++ b/server/user_session.py
@@ -99,7 +99,7 @@ class UserSession(object):
cur = conn.cursor()
try:
# TODO: convert to upsert with postgresql 9.5 to eliminate the small window where it's possible for more than one concurrent insert to execute
- cur.execute('select id, trace, solution, content from solution where codeq_user_id = %s and problem_id = %s for update', (self.uid, problem_id))
+ cur.execute('select id, trace, content from solution where codeq_user_id = %s and problem_id = %s for update', (self.uid, problem_id))
row = cur.fetchone()
if row:
if row[1]: