generate 3 random chars instead of two
This commit is contained in:
parent
8bc9f5619c
commit
e79665190a
2
parse.py
2
parse.py
@ -571,7 +571,7 @@ def voucher_create_handler(cmd):
|
|||||||
voucher_detail.name = cmd.n
|
voucher_detail.name = cmd.n
|
||||||
voucher_detail.decimals = cmd.v
|
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:
|
try:
|
||||||
with open("vouchers.json", "r") as f:
|
with open("vouchers.json", "r") as f:
|
||||||
existing_vouchers = json.load(f)
|
existing_vouchers = json.load(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user