mirror of
https://github.com/koloideal/Quizzi.git
synced 2026-06-10 10:25:28 +03:00
Initial commit
This commit is contained in:
@@ -4,7 +4,6 @@ import qrcode
|
|||||||
|
|
||||||
|
|
||||||
def generate_qr_bytes(text: str) -> bytes:
|
def generate_qr_bytes(text: str) -> bytes:
|
||||||
"""Generate QR code as PNG bytes."""
|
|
||||||
img = qrcode.make(text)
|
img = qrcode.make(text)
|
||||||
with io.BytesIO() as buffer:
|
with io.BytesIO() as buffer:
|
||||||
img.save(buffer)
|
img.save(buffer)
|
||||||
|
|||||||
Reference in New Issue
Block a user