From 0b29e1f3d30bfd90b626fd941e14ca9c9fbd9655 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 6 Jun 2010 16:55:44 +0200 Subject: quotes: All query arguments should be %s. --- modules/quotes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3