mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-18 19:41:11 +02:00
@@ -73,13 +73,13 @@ async def displaywin(
|
|||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
|
||||||
)
|
)
|
||||||
if satsdicelink.lost:
|
|
||||||
|
withdrawLink = await get_satsdice_withdraw(payment_hash)
|
||||||
|
if withdrawLink.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},
|
||||||
)
|
)
|
||||||
|
|
||||||
withdrawLink = await get_satsdice_withdraw(payment_hash)
|
|
||||||
if withdrawLink:
|
if withdrawLink:
|
||||||
return satsdice_renderer().TemplateResponse(
|
return satsdice_renderer().TemplateResponse(
|
||||||
"satsdice/displaywin.html",
|
"satsdice/displaywin.html",
|
||||||
|
Reference in New Issue
Block a user