summaryrefslogtreecommitdiff
path: root/src/leap/soledad/client/_db/blobs/sql.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-12-26 08:38:30 -0200
committerdrebs <drebs@leap.se>2017-12-26 08:38:30 -0200
commit5087e93eea322a62f991f92bd942472f76eb5396 (patch)
treee8da60e8f3f7cda7532e3319475a06f45841b0f2 /src/leap/soledad/client/_db/blobs/sql.py
parent3fe71d50842371e0be6b939ba249f5a7284c0f55 (diff)
[doc] add comment to clarify order of results
Diffstat (limited to 'src/leap/soledad/client/_db/blobs/sql.py')
-rw-r--r--src/leap/soledad/client/_db/blobs/sql.py1
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: