attach lnurl to view

This commit is contained in:
Ben Arc
2021-04-14 23:01:39 +01:00
parent a4255e1594
commit 390ee227ec
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
<img src="" style="width: 100%" id="animations" class="fixed-bottom-left" />
<qrcode
style="width: 20%; z-index: 9999"
:value="{{copilot.lnurl}}"
:value="{{ lnurl }}"
class="rounded-borders fixed-top-right"
></qrcode>
<q-btn

View File

@@ -47,4 +47,5 @@ async def panel(copilot_id):
copilot = await get_copilot(copilot_id) or abort(
HTTPStatus.NOT_FOUND, "Copilot link does not exist."
)
return await render_template("copilot/panel.html", copilot=copilot)
print(copilot.lnurl)
return await render_template("copilot/panel.html", copilot=copilot, lnurl=copilot.lnurl)