Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This bug affects task tracking reliability and may confuse users about task completion status. #16

Open
1 task
Advaitgaur004 opened this issue Oct 25, 2024 · 0 comments
Labels
bug Something isn't working bugbounty Bug Bounty event hosted by Devlup Labs, inviting developers to identify and report bugs inconsistency todo list

Comments

@Advaitgaur004
Copy link
Member

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

  1. Initialize the TodoList class.
  2. Add a task using the add_task method.
  3. Update the status of the task to "completed" using the update_status method.
  4. Call the list_tasks method to see the task details.

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.

  • Update the update_status method to set 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

@Advaitgaur004 Advaitgaur004 added bug Something isn't working bugbounty Bug Bounty event hosted by Devlup Labs, inviting developers to identify and report bugs inconsistency todo list labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bugbounty Bug Bounty event hosted by Devlup Labs, inviting developers to identify and report bugs inconsistency todo list
Projects
None yet
Development

No branches or pull requests

1 participant