fixed bug

This commit is contained in:
benarc
2021-11-16 03:18:06 +00:00
parent 99d113f7d1
commit da43923d2f

View File

@@ -73,13 +73,13 @@ async def displaywin(
raise HTTPException(
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(
"satsdice/error.html",
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},
)
withdrawLink = await get_satsdice_withdraw(payment_hash)
if withdrawLink:
return satsdice_renderer().TemplateResponse(
"satsdice/displaywin.html",