mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-07 13:59:06 +00:00
Set cancel_status if it's not None
This commit is contained in:
parent
99ecf54b18
commit
ec0356f1b6
@ -116,7 +116,9 @@ class Trade:
|
|||||||
path = reverse("order")
|
path = reverse("order")
|
||||||
params = f"?order_id={self.order_id}"
|
params = f"?order_id={self.order_id}"
|
||||||
headers = self.get_robot_auth(robot_index)
|
headers = self.get_robot_auth(robot_index)
|
||||||
body = {"action": "cancel", "cancel_status": cancel_status}
|
body = {"action": "cancel"}
|
||||||
|
if cancel_status is not None:
|
||||||
|
body.update({"cancel_status": cancel_status})
|
||||||
self.response = self.client.post(path + params, body, **headers)
|
self.response = self.client.post(path + params, body, **headers)
|
||||||
|
|
||||||
@patch("api.tasks.send_notification.delay", send_notification)
|
@patch("api.tasks.send_notification.delay", send_notification)
|
||||||
|
Loading…
Reference in New Issue
Block a user