Merge pull request #421 from arcbtc/FastAPI

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

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",