From fcad48e2c5284381ba19d3bbb78835ef1e7992f2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 Nov 2005 00:21:45 +0000 Subject: yet another db fix git-svn-id: file:///home/lennart/svn/public/sse/trunk@29 5fbabb74-0606-0410-a5e4-b5cc6a42724e --- feed/sse_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'feed') diff --git a/feed/sse_db.py b/feed/sse_db.py index 1b6f4ca..14c3bf2 100644 --- a/feed/sse_db.py +++ b/feed/sse_db.py @@ -70,5 +70,5 @@ def new_word(file_id, text, is_subword): else: t = "word" - cursor.execute('INSERT IGNORE INTO word (text, type, crawler_id, file_id, cnt) VALUES (%s, %s, %s, 0)', (text, t, crawler_id, file_id)) + cursor.execute('INSERT IGNORE INTO word (text, type, crawler_id, file_id, cnt) VALUES (%s, %s, %s, %s, 0)', (text, t, crawler_id, file_id)) cursor.execute('UPDATE word SET cnt=cnt+1 WHERE text=%s AND type=%s AND crawler_id=%s AND file_id=%s', (text, t, crawler_id, file_id)) -- cgit