From d0039ca71cc514f40b4a6731bf04fbe636cc1f8b Mon Sep 17 00:00:00 2001 From: benarc Date: Wed, 3 Mar 2021 13:59:31 +0000 Subject: [PATCH] black format --- lnbits/extensions/withdraw/views.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lnbits/extensions/withdraw/views.py b/lnbits/extensions/withdraw/views.py index 6b7ed3f7..473ccbea 100644 --- a/lnbits/extensions/withdraw/views.py +++ b/lnbits/extensions/withdraw/views.py @@ -27,11 +27,17 @@ async def img(link_id): qr = pyqrcode.create(link.lnurl) stream = BytesIO() qr.svg(stream, scale=3) - return stream.getvalue(), 200, { - 'Content-Type': 'image/svg+xml', - 'Cache-Control': 'no-cache, no-store, must-revalidate', - 'Pragma': 'no-cache', - 'Expires': '0'} + return ( + stream.getvalue(), + 200, + { + "Content-Type": "image/svg+xml", + "Cache-Control": "no-cache, no-store, must-revalidate", + "Pragma": "no-cache", + "Expires": "0", + }, + ) + @withdraw_ext.route("/print/") async def print_qr(link_id):