summaryrefslogtreecommitdiff
path: root/src/leap/soledad/client
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-09-29 23:33:37 -0300
committerdrebs <drebs@riseup.net>2017-09-30 00:47:15 -0300
commit8aa665df40a1535012e8dcf990ae21c473631948 (patch)
tree0cafcc34786919ffc3fb0720fc944b82b2db4cef /src/leap/soledad/client
parentc2395e4567d40252bf2a8e7cbe46ce45cc56d7ea (diff)
[bug] fix argument passing in blobs queries
Diffstat (limited to 'src/leap/soledad/client')
-rw-r--r--src/leap/soledad/client/_db/blobs.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/leap/soledad/client/_db/blobs.py b/src/leap/soledad/client/_db/blobs.py
index a22c3f0f..60c369b2 100644
--- a/src/leap/soledad/client/_db/blobs.py
+++ b/src/leap/soledad/client/_db/blobs.py
@@ -259,11 +259,12 @@ class BlobManager(object):
"""
uri = urljoin(self.remote, self.user + '/')
params = {'namespace': namespace} if namespace else {}
- params.update({
- 'order_by': order_by,
- 'filter_flag': filter_flag,
- 'only_count': only_count,
- })
+ if order_by:
+ params['order_by'] = order_by
+ if filter_flag:
+ params['filter_flag'] = filter_flag
+ if only_count:
+ params['only_count'] = only_count
response = yield self._client.get(uri, params=params)
check_http_status(response.code)
defer.returnValue((yield response.json()))