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:
parent
b3a383d151
commit
cff792d381
@ -238,5 +238,5 @@ class LocalStatusSQLiteFolder(LocalStatusFolder):
|
|||||||
return
|
return
|
||||||
for uid in uidlist:
|
for uid in uidlist:
|
||||||
del(self.messagelist[uid])
|
del(self.messagelist[uid])
|
||||||
self.sql_write('DELETE FROM status WHERE id=?',
|
#TODO: we want a way to do executemany(.., uidlist) to delete all
|
||||||
uidlist)
|
self.sql_write('DELETE FROM status WHERE id=?', (uid, ))
|
||||||
|
Loading…
Reference in New Issue
Block a user