Trying to fix

This commit is contained in:
benarc
2020-12-04 10:07:59 +00:00
parent 54c0c9f3a8
commit 4c7c792390
3 changed files with 9 additions and 15 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ from http import HTTPStatus
from lnbits.decorators import check_user_exists, validate_uuids
from . import watchonly_ext
from .crud import get_payment
from .crud import get_charge
@watchonly_ext.route("/")
@@ -15,7 +15,7 @@ async def index():
@watchonly_ext.route("/<charge_id>")
async def display(payment_id):
link = get_payment(payment_id) or abort(HTTPStatus.NOT_FOUND, "Pay link does not exist.")
async def display(charge_id):
link = get_payment(charge_id) or abort(HTTPStatus.NOT_FOUND, "Charge link does not exist.")
return await render_template("watchonly/display.html", link=link)