Renamed ebook_backend&admin_panel to ebook_backend_admin_panel The & character was being interpreted by shell as background process operator, causing 'Dockerfile not found' errors in Coolify.
8 lines
267 B
Python
8 lines
267 B
Python
import random
|
|
import string
|
|
|
|
# def generate_coupon(length: int = 6) -> str:
|
|
# return ''.join(random.choices(string.ascii_uppercase + string.digits, k=length))
|
|
|
|
def generate_coupon():
|
|
return ''.join(random.choices(string.ascii_uppercase + string.digits, k=10)) |