summaryrefslogtreecommitdiffstats
path: root/feed
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-23 00:21:45 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-23 00:21:45 +0000
commitfcad48e2c5284381ba19d3bbb78835ef1e7992f2 (patch)
treee7d458a98476629bee51fe0c1dcf9432476b33b4 /feed
parent229f743d19873a15e5577bb9a1dcccc377865e79 (diff)
yet another db fix
git-svn-id: file:///home/lennart/svn/public/sse/trunk@29 5fbabb74-0606-0410-a5e4-b5cc6a42724e
Diffstat (limited to 'feed')
-rw-r--r--feed/sse_db.py2
1 files changed, 1 insertions, 1 deletions
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))