Skip to content

Commit

Permalink
Try fixing CSV/QR code mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Mar 25, 2024
1 parent 2d8025e commit 294763e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/ticket_holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def qr_code(self):
if not self.identifier:
identifier = get_new_id()

qr.add_data(self.order.identifier + "-" + identifier)
# original code from TMA, but this generates an incorrect affix
# qr.add_data(self.order.identifier + "-" + identifier)
qr.add_data(self.order.identifier)
qr.make(fit=True)
img = qr.make_image()

Expand Down

0 comments on commit 294763e

Please sign in to comment.