generate 3 random chars instead of two

This commit is contained in:
Carlosokumu 2024-12-18 07:29:57 +03:00
parent 8bc9f5619c
commit e79665190a
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -571,7 +571,7 @@ def voucher_create_handler(cmd):
voucher_detail.name = cmd.n
voucher_detail.decimals = cmd.v
random_ascii = "".join(random.choices(string.ascii_letters, k=2)).upper()
random_ascii = "".join(random.choices(string.ascii_letters, k=3)).upper()
try:
with open("vouchers.json", "r") as f:
existing_vouchers = json.load(f)