Re-add https:// format, needed for most devices

This commit is contained in:
Cole Deck 2024-03-21 19:48:46 -05:00
parent ee0f8f4250
commit 9b1b92e21d

View File

@ -295,7 +295,7 @@ def qr_image(data, width=600):
# Draw QR code
partnum = partnum.replace(" ", "%20")
qrcode = segno.make('BLDN.APP/' + partnum,micro=False,boost_error=False,error="L",mask=3)
qrcode = segno.make('HTTPS://BLDN.APP/' + partnum,micro=False,boost_error=False,error="L",mask=3)
out = io.BytesIO()
qrx, _ = qrcode.symbol_size(1,0)
qrcode.save(out, scale=width*2/qrx, kind="PNG", border=0)