Fix bug 'dispute cannot be open in this stage'. Update Dockerfile

This commit is contained in:
Reckless_Satoshi 2022-05-25 00:46:57 -07:00
parent bf45085279
commit 3cb544ef10
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 2 additions and 3 deletions

View File

@ -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 . .

View File

@ -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: