From afcabbc67f65ec2068adb4f6041d327b76459a56 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sun, 22 Jun 2025 19:34:20 +0200 Subject: [PATCH] Include more order info when there is a password --- api/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/api/views.py b/api/views.py index 11036cbc..bc6570a3 100644 --- a/api/views.py +++ b/api/views.py @@ -306,12 +306,6 @@ class OrderView(viewsets.ViewSet): ) ) - data["satoshis_now"] = order.last_satoshis - - # 4.b) If order has a password - if not data["is_participant"] and data["has_password"]: - return Response(data, status.HTTP_200_OK) - # For participants add positions, nicks and status as a message and hold invoices status data["is_buyer"] = Logics.is_buyer(order, request.user) data["is_seller"] = Logics.is_seller(order, request.user) @@ -325,6 +319,7 @@ class OrderView(viewsets.ViewSet): data["longitude"] = order.longitude data["is_disputed"] = order.is_disputed data["ur_nick"] = request.user.username + data["satoshis_now"] = order.last_satoshis # Add whether hold invoices are LOCKED (ACCEPTED) # Is there a maker bond? If so, True if locked, False otherwise