commit
05299224ee
1 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue