Skip to content

Commit

Permalink
fix(backend): add INVALIDATED status option back in (#1618)
Browse files Browse the repository at this point in the history
* fix(enums): uncomment previous get_action_for_status_change code

* fix(enums): invalidated case add to function
  • Loading branch information
NSUWAL123 authored Jul 3, 2024
1 parent e270aac commit 117f71d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/app/models/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ def get_action_for_status_change(task_status: TaskStatus):
return TaskAction.MARKED_BAD
case TaskStatus.SPLIT:
return TaskAction.SPLIT_NEEDED
case TaskStatus.INVALIDATED:
return TaskAction.MARKED_INVALID


class TaskType(IntEnum, Enum):
Expand Down

0 comments on commit 117f71d

Please sign in to comment.