diff options
author | drebs <drebs@leap.se> | 2017-12-26 08:38:30 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-12-26 08:38:30 -0200 |
commit | 5087e93eea322a62f991f92bd942472f76eb5396 (patch) | |
tree | e8da60e8f3f7cda7532e3319475a06f45841b0f2 | |
parent | 3fe71d50842371e0be6b939ba249f5a7284c0f55 (diff) |
[doc] add comment to clarify order of results
-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: |