parthwce/todo-manager

Test completion bug

オープン

#1 opened on 2025/09/20

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (1 件のフォーク)auto 404
buggood first issuehacktoberfesthacktoberfest2025

Repository metrics

Stars
 (0 個のスター)
PR merge metrics
 (PR metrics pending)

説明


name: Example Bug – Task Completion Not Saved about: There is a major bug with marking tasks as complete in the current To-Do Manager. title: "[Bug]: Task completion not persisted" labels: ["bug", "help wanted", "good first issue"] assignees: ''

Description

When a user marks a task as complete using the complete command, the status message is shown, but the completion is not actually saved to the file. After restarting the script or listing tasks again, the task shows as pending.

Steps to Reproduce

  1. Add a new task:
  2. Mark the task as complete:
  3. List tasks or restart the script:

Expected Behavior

  • After marking a task complete, its status should show as Done (or ✅), and this status should remain even after restarting the script.

Actual Behavior

  • The message “Task marked complete.” is printed, but the file is not updated, so the task remains pending every time.

Suggested Solution

  • Ensure that the function responsible for marking tasks as complete also saves the updated list to the file immediately.

Environment

  • OS: Windows 11 / Ubuntu 20.04 / macOS Ventura
  • Python version: 3.8+

Additional Context

  • Add error handling if the user tries to complete a non-existent task index.

コントリビューターガイド