Satspay mostly working

This commit is contained in:
Ben Arc
2021-04-07 01:50:38 +01:00
parent f5d06653a6
commit 90319bfd8c
8 changed files with 342 additions and 237 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
from quart import g, abort, render_template
from quart import g, abort, render_template, jsonify
from http import HTTPStatus
from lnbits.decorators import check_user_exists, validate_uuids
@@ -16,6 +16,6 @@ async def index():
@satspay_ext.route("/<charge_id>")
async def display(charge_id):
charge = get_charge(charge_id) or abort(HTTPStatus.NOT_FOUND, "Charge link does not exist.")
return await render_template("satspay/display.html", charge=charge)
charge = await get_charge(charge_id) or abort(
HTTPStatus.NOT_FOUND, "Charge link does not exist.")
return await render_template("satspay/display.html", charge=charge)