mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Fix bug 'dispute cannot be open in this stage'. Update Dockerfile
This commit is contained in:
parent
bf45085279
commit
3cb544ef10
@ -9,7 +9,6 @@ RUN python -m pip install --upgrade pip
|
|||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r 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 current dir's content to container's WORKDIR root i.e. all the contents of the robosats app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -379,12 +379,12 @@ class Logics:
|
|||||||
# for unresolved HTLCs) Dispute winner will have to submit a
|
# for unresolved HTLCs) Dispute winner will have to submit a
|
||||||
# new invoice for value of escrow + bond.
|
# new invoice for value of escrow + bond.
|
||||||
|
|
||||||
valid_status_open_disppute = [
|
valid_status_open_dispute = [
|
||||||
Order.Status.CHA,
|
Order.Status.CHA,
|
||||||
Order.Status.FSE,
|
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"}
|
return False, {"bad_request": "You cannot open a dispute of this order at this stage"}
|
||||||
|
|
||||||
if not order.trade_escrow.status == LNPayment.Status.SETLED:
|
if not order.trade_escrow.status == LNPayment.Status.SETLED:
|
||||||
|
Loading…
Reference in New Issue
Block a user