jira-18 approval API

This commit is contained in:
jain
2023-07-13 19:24:33 +05:30
parent 52a0f4b590
commit 5d528b885a
5 changed files with 53 additions and 3 deletions

View File

@ -187,3 +187,9 @@ def generate_alphanumeric_code(length):
code = ''.join(secrets.choice(alphabet) for _ in range(length))
return code
def generate_code(value, user_id):
alphabet = value + user_id.zfill(3)
return alphabet