mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-25 19:36:15 +02:00
Deleted some prints
This commit is contained in:
@@ -24,9 +24,7 @@ async def display(link_id):
|
|||||||
@withdraw_ext.route("/img/<link_id>")
|
@withdraw_ext.route("/img/<link_id>")
|
||||||
async def 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.")
|
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)
|
qr = pyqrcode.create(link.lnurl)
|
||||||
print(qr)
|
|
||||||
stream = BytesIO()
|
stream = BytesIO()
|
||||||
qr.svg(stream, scale=3)
|
qr.svg(stream, scale=3)
|
||||||
return stream.getvalue(), 200, {
|
return stream.getvalue(), 200, {
|
||||||
|
Reference in New Issue
Block a user