From 8aa665df40a1535012e8dcf990ae21c473631948 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 29 Sep 2017 23:33:37 -0300 Subject: [bug] fix argument passing in blobs queries --- src/leap/soledad/client/_db/blobs.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/leap/soledad/client') 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())) -- cgit v1.2.3