summaryrefslogtreecommitdiffstats
path: root/feed
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-23 00:22:59 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-23 00:22:59 +0000
commit033d9ae9486861e99a420b84b5645c912d1613ff (patch)
tree63588a073f7be2b6935561f9b5a4e281e8f9dd01 /feed
parentfcad48e2c5284381ba19d3bbb78835ef1e7992f2 (diff)
and yet another db fix
git-svn-id: file:///home/lennart/svn/public/sse/trunk@30 5fbabb74-0606-0410-a5e4-b5cc6a42724e
Diffstat (limited to 'feed')
-rw-r--r--feed/sse_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/feed/sse_db.py b/feed/sse_db.py
index 14c3bf2..16b07c7 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, %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))
+ cursor.execute('INSERT IGNORE INTO word (text, type, crawler_id, file_id, cnt) VALUES (%s, %s, %s, %s, 0)', (text, t, file_id[0], file_id[1]))
+ cursor.execute('UPDATE word SET cnt=cnt+1 WHERE text=%s AND type=%s AND crawler_id=%s AND file_id=%s', (text, t, file_id[0], file_id[1]))