This bug affects task tracking reliability and may confuse users about task completion status. #16
Labels
bug
Something isn't working
bugbounty
Bug Bounty event hosted by Devlup Labs, inviting developers to identify and report bugs
inconsistency
todo list
Description
The update_status method in the TodoList class creates an inconsistency between the status field and the is_completed flag of the Task class when a task is marked as completed
Files
To Reproduce
Expected Behavior
When a task's status is updated to "completed," the is_completed flag should also be set to True, reflecting the task's completion status.
Actual Behavior
The is_completed flag remains False even when the task status is updated to "completed," leading to inconsistency in task completion status.
Tasks
List specific tasks that need to be completed in the order they should be done. Include links to specific lines of code where applicable.
task.is_completed = (new_status == "completed")
when the status is updated.Possible Fixes
Modify the update_status method to ensure that the is_completed flag is updated alongside the status field
The text was updated successfully, but these errors were encountered: