summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app.py b/app.py
index 78c97f2..51059d1 100644
--- a/app.py
+++ b/app.py
@@ -50,13 +50,13 @@ class dbProxy(object):
def voteJoke(self, objectId, down):
if down:
- self.c.execute("UPDATE jokes SET downvotes=downvotes+1 WHERE id=?", (objectId))
+ self.c.execute("UPDATE jokes SET downvotes=downvotes+1 WHERE id=?", (objectId,))
else:
- self.c.execute("UPDATE jokes SET upvotes=upvotes+1 WHERE id=?", (objectId))
+ self.c.execute("UPDATE jokes SET upvotes=upvotes+1 WHERE id=?", (objectId,))
self.conn.commit()
def reportJoke(self, objectId):
- self.c.execute("UPDATE jokes SET reports=reports+1 WHERE id=?", (objectId))
+ self.c.execute("UPDATE jokes SET reports=reports+1 WHERE id=?", (objectId,))
self.conn.commit()