diff options
-rw-r--r-- | src/leap/soledad/client/_db/blobs/sql.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |