refactor: remove single use var
This commit is contained in:
parent
cd53f9930b
commit
44754df991
1 changed files with 6 additions and 8 deletions
|
|
@ -31,14 +31,12 @@ async def display(request: Request, charge_id: str):
|
||||||
status_code=HTTPStatus.NOT_FOUND, detail="Charge link does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="Charge link does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
view_data = {
|
return satspay_renderer().TemplateResponse(
|
||||||
|
"satspay/display.html",
|
||||||
|
{
|
||||||
"request": request,
|
"request": request,
|
||||||
"charge_data": public_charge(charge),
|
"charge_data": public_charge(charge),
|
||||||
"mempool_endpoint": charge.config.mempool_endpoint,
|
"mempool_endpoint": charge.config.mempool_endpoint,
|
||||||
"network": charge.config.network,
|
"network": charge.config.network,
|
||||||
}
|
},
|
||||||
|
|
||||||
return satspay_renderer().TemplateResponse(
|
|
||||||
"satspay/display.html",
|
|
||||||
view_data,
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue