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: