From 3cb544ef10b6d3ae5e17bfb223fc1fdd68f2aa8b Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Wed, 25 May 2022 00:46:57 -0700 Subject: [PATCH] Fix bug 'dispute cannot be open in this stage'. Update Dockerfile --- Dockerfile | 1 - api/logics.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe04d2a7..52c08374 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ RUN python -m pip install --upgrade pip COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt -RUN pip install git+git://github.com/django/django.git # copy current dir's content to container's WORKDIR root i.e. all the contents of the robosats app COPY . . diff --git a/api/logics.py b/api/logics.py index 4bf2032b..5f2cd31c 100644 --- a/api/logics.py +++ b/api/logics.py @@ -379,12 +379,12 @@ class Logics: # for unresolved HTLCs) Dispute winner will have to submit a # new invoice for value of escrow + bond. - valid_status_open_disppute = [ + valid_status_open_dispute = [ Order.Status.CHA, Order.Status.FSE, ] - if order.status in valid_status_open_disppute: + if order.status not in valid_status_open_dispute: return False, {"bad_request": "You cannot open a dispute of this order at this stage"} if not order.trade_escrow.status == LNPayment.Status.SETLED: