LocalStatusSQLite: Fix bug when deleting messages

The syntax was not right, and deleting messages from the LocalStatus
failed. (We passed in the full list of uids and we need to pass in one
uid at a time (as a tuple). Deleting messages works now.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-05-07 20:28:17 +02:00 committed by Nicolas Sebrecht
parent b3a383d151
commit cff792d381

View File

@ -238,5 +238,5 @@ class LocalStatusSQLiteFolder(LocalStatusFolder):
return
for uid in uidlist:
del(self.messagelist[uid])
self.sql_write('DELETE FROM status WHERE id=?',
uidlist)
#TODO: we want a way to do executemany(.., uidlist) to delete all
self.sql_write('DELETE FROM status WHERE id=?', (uid, ))