summaryrefslogtreecommitdiff
path: root/src/leap/soledad/client/_db
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-07-07 02:32:36 -0300
committerdrebs <drebs@leap.se>2017-07-18 15:30:30 -0300
commit679e1bb7990fc1fc9c4971db6383a75ae6acab80 (patch)
tree22e48ea737a95f0433ac217915d31e2ec5ffa00d /src/leap/soledad/client/_db
parent463073b3147f9ba4e784e92cc8bec1d74ab0b7f4 (diff)
[feature] remote list sorting by date
Listing by date is useful for listing newest/oldest documents on blobs storage and should be used for listing new IncomingMessages as described on specification. -- Resolves: #8879
Diffstat (limited to 'src/leap/soledad/client/_db')
-rw-r--r--src/leap/soledad/client/_db/blobs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py
index 10b90c71..8f9f4769 100644
--- a/src/leap/soledad/client/_db/blobs.py
+++ b/src/leap/soledad/client/_db/blobs.py
@@ -167,9 +167,9 @@ class BlobManager(object):
return self.local.close()
@defer.inlineCallbacks
- def remote_list(self):
+ def remote_list(self, **params):
uri = urljoin(self.remote, self.user + '/')
- data = yield self._client.get(uri)
+ data = yield self._client.get(uri, params=params)
defer.returnValue((yield data.json()))
def local_list(self):