-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Is this related to an existing part of the documentation?
- Yes, it is related to an existing section
What needs to be updated?
📌 Current Documentation Issue
- In the update_task() function, there is an incorrect column name used in the UPDATE SQL statement. Specifically, the issue is with the priority column, which does not exist in the tasks table. This leads to an SQL error: "no such column: priority"
- The add_task() function currently does not validate the incoming request data before inserting it into the database. If title, content, starting_week, or ending_week are missing from the request body, the database insertion will fail.
- The delete_task() function does not check if a task exists before deleting it.
- Syntax errors
✨ Proposed Changes
- Change update_task() in tasks.py
- Modify add_task() in tasks.py to validate input.
- Modify delete_task() in tasks.py
- Minor corrections in syntax
Relevant Documentation Link (if any)
Backend
Record
- I agree to follow this project's Code of Conduct
- I want to work on this update
Metadata
Metadata
Assignees
Labels
No labels