Skip to content

Commit

Permalink
Merge pull request #722 from BryceStevenWilley/qr_fill
Browse files Browse the repository at this point in the history
QR fill
  • Loading branch information
jhpyle authored Dec 21, 2023
2 parents 70d7dbf + 041cf99 commit 78a77ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docassemble_base/docassemble/base/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,11 +1090,11 @@ def qr_url_string(match):
if match.group(3) != 'None':
alt_text = str(match.group(3))
else:
alt_text = word("A QR code")
alt_text = word(f"A QR code that goes to {string}")
else:
alt_text = word("A QR code")
alt_text = word(f"A QR code that goes to {string}")
width_string = "width:" + width
im = qrcode.make(string, image_factory=qrcode.image.svg.SvgPathImage)
im = qrcode.make(string, image_factory=qrcode.image.svg.SvgPathFillImage)
output = BytesIO()
im.save(output)
the_image = output.getvalue().decode()
Expand Down

0 comments on commit 78a77ae

Please sign in to comment.