Skip to content

Commit

Permalink
fix-9127: Add the unique ticket code into the downlad CSV file
Browse files Browse the repository at this point in the history
  • Loading branch information
lthanhhieu committed Mar 23, 2024
1 parent 7a21f9d commit 8e248bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/ticket_holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


def get_new_id():
"""Generate a new id for a ticket holder."""
return str(binascii.b2a_hex(os.urandom(3)), 'utf-8')


Expand Down Expand Up @@ -155,5 +156,7 @@ def pdf_url_path(self) -> str:
+ '.pdf'
)

def get_new_identifier(self):
@staticmethod
def get_new_identifier():
"""Generate a new identifier for the ticket holder."""
return str(binascii.b2a_hex(os.urandom(3)), 'utf-8')

0 comments on commit 8e248bc

Please sign in to comment.