fix comments

This commit is contained in:
wolflu05 2024-07-15 10:47:37 +02:00
parent 508258b362
commit ba925ee07e
No known key found for this signature in database
GPG Key ID: 9099EFC7C5EB963C

View File

@ -47,13 +47,13 @@ def qrcode(data, **kwargs):
base64 encoded image data base64 encoded image data
""" """
# Construct params # Extract other arguments from kwargs
fill_color = kwargs.pop('fill_color', 'black') fill_color = kwargs.pop('fill_color', 'black')
back_color = kwargs.pop('back_color', 'white') back_color = kwargs.pop('back_color', 'white')
image_format = kwargs.pop('format', 'PNG') image_format = kwargs.pop('format', 'PNG')
optimize = kwargs.pop('optimize', 1) optimize = kwargs.pop('optimize', 1)
# Construct QR code params # Construct QR code object
qr = QRCode(**{ qr = QRCode(**{
'box_size': 20, 'box_size': 20,
'border': 1, 'border': 1,