link broken

This commit is contained in:
benarc 2021-02-26 17:44:32 +00:00
parent 0ed281e0fb
commit d913ab1306

View File

@ -23,8 +23,11 @@ async def display(link_id):
@withdraw_ext.route("/img/<link_id>")
async def img(link_id):
link = await get_withdraw_link(link_id, 0) or abort(HTTPStatus.NOT_FOUND, "Withdraw link does not exist.")
print(link)
qr = pyqrcode.create(link.lnurl)
print(qr)
qrimage = qr.png('qrimage.png', scale=5)
print(qrimage)
return '<img src=' + qrimage + '>'
@withdraw_ext.route("/print/<link_id>")