Merge pull request #422 from arcbtc/FastAPI

Posgres support
This commit is contained in:
Arc 2021-11-15 21:26:34 -06:00 committed by GitHub
commit 6da1aec2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,8 +74,8 @@ async def displaywin(
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
)
withdrawLink = await get_satsdice_withdraw(payment_hash)
if withdrawLink.lost:
payment = await get_satsdice_payment(payment_hash)
if payment.lost:
return satsdice_renderer().TemplateResponse(
"satsdice/error.html",
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},