mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-20 10:39:59 +01:00
commit
6da1aec2b9
@ -74,8 +74,8 @@ async def displaywin(
|
|||||||
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
withdrawLink = await get_satsdice_withdraw(payment_hash)
|
payment = await get_satsdice_payment(payment_hash)
|
||||||
if withdrawLink.lost:
|
if payment.lost:
|
||||||
return satsdice_renderer().TemplateResponse(
|
return satsdice_renderer().TemplateResponse(
|
||||||
"satsdice/error.html",
|
"satsdice/error.html",
|
||||||
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},
|
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},
|
||||||
|
Loading…
Reference in New Issue
Block a user