mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
black format
This commit is contained in:
@@ -27,11 +27,17 @@ async def img(link_id):
|
|||||||
qr = pyqrcode.create(link.lnurl)
|
qr = pyqrcode.create(link.lnurl)
|
||||||
stream = BytesIO()
|
stream = BytesIO()
|
||||||
qr.svg(stream, scale=3)
|
qr.svg(stream, scale=3)
|
||||||
return stream.getvalue(), 200, {
|
return (
|
||||||
'Content-Type': 'image/svg+xml',
|
stream.getvalue(),
|
||||||
'Cache-Control': 'no-cache, no-store, must-revalidate',
|
200,
|
||||||
'Pragma': 'no-cache',
|
{
|
||||||
'Expires': '0'}
|
"Content-Type": "image/svg+xml",
|
||||||
|
"Cache-Control": "no-cache, no-store, must-revalidate",
|
||||||
|
"Pragma": "no-cache",
|
||||||
|
"Expires": "0",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@withdraw_ext.route("/print/<link_id>")
|
@withdraw_ext.route("/print/<link_id>")
|
||||||
async def print_qr(link_id):
|
async def print_qr(link_id):
|
||||||
|
Reference in New Issue
Block a user