diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-27 18:20:04 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-08-27 18:20:04 +0200 |
commit | 174f81eb61e22b59a506b1334061eccf7e24ca7c (patch) | |
tree | 8562244fe7fd4480c0b85686b32ac490c6eeb859 | |
parent | 965bbb88e9727d4376f950239fc06a9fc6c1a723 (diff) |
Fix a typo
-rw-r--r-- | server/user_session.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/user_session.py b/server/user_session.py index d5aec44..c9d21b4 100644 --- a/server/user_session.py +++ b/server/user_session.py @@ -88,7 +88,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, solution, 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]: |