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
					Sebastian Spaeth
				
			
				
					committed by
					
						 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
			
				
	
			
			
			 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
						parent
						
							b3a383d151
						
					
				
				
					commit
					cff792d381
				
			| @@ -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, )) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user