optimized task status code

This commit is contained in:
jain
2023-09-04 15:22:15 +05:30
parent 20fa6e43da
commit 116fb00358
3 changed files with 13 additions and 12 deletions

View File

@ -313,3 +313,12 @@ def make_special_password(length=10):
password_list = list(password)
random.shuffle(password_list)
return ''.join(password_list)
def task_status_fun(status_value):
"""task status"""
task_status_value = ['1']
if str(status_value) == '2':
task_status_value = ['2', '4']
elif str(status_value) == '3':
task_status_value = ['3', '5', '6']
return task_status_value