summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-06-06 16:55:44 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-06-06 16:55:44 +0200
commit0b29e1f3d30bfd90b626fd941e14ca9c9fbd9655 (patch)
tree8324ca829407bbcfa2f2e7d5e7ecf3dcca3f05c6 /modules
parent410e6b5e7d5e6ecc89e9634dc1558540a068911d (diff)
quotes: All query arguments should be %s.
Diffstat (limited to 'modules')
-rw-r--r--modules/quotes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/quotes.py b/modules/quotes.py
index cf2cdbe..8a113c9 100644
--- a/modules/quotes.py
+++ b/modules/quotes.py
@@ -27,7 +27,7 @@ class Quotes:
def add(self, nick, quote):
cur = self.db.cursor()
- cur.execute('insert into quotes (nick, date, quote) values (%s, %d, %s)', (nick, int(time.time()), quote))
+ cur.execute('insert into quotes (nick, date, quote) values (%s, %s, %s)', (nick, int(time.time()), quote))
cur.execute('select currval(\'quotes_id_seq\')')
lastrowid = cur.fetchone()[0]
cur.close()