requested task not expired

This commit is contained in:
jain
2023-08-25 16:36:58 +05:30
parent e9315beab9
commit c47f6222d9
4 changed files with 26 additions and 8 deletions

View File

@ -127,7 +127,7 @@ def update_expired_task_status(data=None):
Update task of the status if due date is in past
"""
try:
task_status = [str(NUMBER['one']), str(NUMBER['two']), str(NUMBER['four'])]
task_status = [str(NUMBER['one']), str(NUMBER['two'])]
JuniorTask.objects.filter(due_date__lt=datetime.today().date(),
task_status__in=task_status).update(task_status=str(NUMBER['six']))
except ObjectDoesNotExist as e: