fix: persist webhook call status

This commit is contained in:
Vlad Stan
2022-11-25 14:12:13 +02:00
parent ead710e591
commit 1a9cd81ee9
6 changed files with 39 additions and 13 deletions
+2 -3
View File
@@ -34,10 +34,9 @@ async def display(request: Request, charge_id: str):
view_data = {
"request": request,
"charge_data": public_charge(charge),
"mempool_endpoint": charge.config.mempool_endpoint,
"network": charge.config.network
}
if "mempool_endpoint" in charge.config:
view_data["mempool_endpoint"] = charge.config["mempool_endpoint"]
view_data["network"] = charge.config["network"]
return satspay_renderer().TemplateResponse(
"satspay/display.html",