Merge pull request #423 from arcbtc/FastAPI

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

View File

@ -73,7 +73,7 @@ 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."
) )
withdrawLink = await get_satsdice_withdraw(payment_hash)
payment = await get_satsdice_payment(payment_hash) payment = await get_satsdice_payment(payment_hash)
if payment.lost: if payment.lost:
return satsdice_renderer().TemplateResponse( return satsdice_renderer().TemplateResponse(