Skip to content

Commit f6daf37

Browse files
Daniel PaquinDaniel Paquin
authored andcommitted
drop JSON encoding for DELETE/cancel_all param functionality
1 parent 7d993fc commit f6daf37

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cbpro/authenticated_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,9 @@ def cancel_all(self, product_id=None):
477477
"""
478478
if product_id is not None:
479479
params = {'product_id': product_id}
480-
data = json.dumps(params)
481480
else:
482-
data = None
483-
return self._send_message('delete', '/orders', data=data)
481+
params = None
482+
return self._send_message('delete', '/orders', params=params)
484483

485484
def get_order(self, order_id):
486485
""" Get a single order by order id.

0 commit comments

Comments
 (0)