diff --git a/news/qr_fix.rst b/news/qr_fix.rst new file mode 100644 index 0000000..e5f19d8 --- /dev/null +++ b/news/qr_fix.rst @@ -0,0 +1,15 @@ +**Added:** + +* Parameter for number of pages of qr codes to print. + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* Fill the whole page with qr codes. + +**Security:** None diff --git a/sampledb/generate_qr.py b/sampledb/generate_qr.py index bea05a4..4d11a7c 100644 --- a/sampledb/generate_qr.py +++ b/sampledb/generate_qr.py @@ -26,6 +26,7 @@ base = 'test' +pages = 5 cols = 3 rows = 10 lmar = 0.1875 @@ -60,7 +61,7 @@ options['gpath'] = base codes = [] -for i in range(rows): +for i in range(pages * cols * rows): uid = str(uuid.uuid4()) code = qrcode.make(uid) filename = uid + '.png'