Don't call set().sort()
as that method doesn't exist on sets. Rather call the inbuilt sorted(flags). This fixes Exceptions being thrown when using the sqlite backend. 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
						
							a6480d4959
						
					
				
				
					commit
					dcc50efc4f
				
			| @@ -231,8 +231,7 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): | ||||
|  | ||||
|     def savemessageflags(self, uid, flags): | ||||
|         self.messagelist[uid] = {'uid': uid, 'flags': flags} | ||||
|         flags.sort() | ||||
|         flags = ''.join(flags) | ||||
|         flags = ''.join(sorted(flags)) | ||||
|         self.sql_write('UPDATE status SET flags=? WHERE id=?',(flags,uid)) | ||||
|  | ||||
|     def deletemessages(self, uidlist): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user