From 5087e93eea322a62f991f92bd942472f76eb5396 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 26 Dec 2017 08:38:30 -0200 Subject: [doc] add comment to clarify order of results --- src/leap/soledad/client/_db/blobs/sql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/leap/soledad/client/_db/blobs/sql.py b/src/leap/soledad/client/_db/blobs/sql.py index a192ae1e..fbb84fb3 100644 --- a/src/leap/soledad/client/_db/blobs/sql.py +++ b/src/leap/soledad/client/_db/blobs/sql.py @@ -226,6 +226,7 @@ class SQLiteBlobBackend(object): results = yield self.dbpool.runQuery(query, values) if results: results = dict([(result[0], result[1]) for result in results]) + # order results according to blob_ids parameter results = [(blob_id, results[blob_id]) for blob_id in blob_ids] defer.returnValue(results) else: -- cgit v1.2.3