Closed brunobl closed 3 years ago
> for numero in allqr:
> # The data that you want to store
> data = "http://qr.rokfishing.com/"+numero
>
> # Add data
> qr.add_data(data)
> qr.make(fit=True)
You're adding the data to an existing QR Code within the loop. The QR Code contains after the first two loops: "http://qr.rokfishing.com/032539http://qr.rokfishing.com/032546"
You've to reset the QR Code's data in the loop via "clear()":
for numero in allqr:
# The data that you want to store
data = "http://qr.rokfishing.com/"+numero
# This is important, otherwise the data of the previously
# generated QR Code is still available!
qr.clear()
# Add data
qr.add_data(data)
qr.make(fit=True)
# [...]
Code below results in DataOverFlow error.
If reducing the number of generated qrcodes, it works fine.