Skip to content

DOCS UPDATE: #62

@NinadBhoir07

Description

@NinadBhoir07

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

  1. 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"
  2. 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.
  3. The delete_task() function does not check if a task exists before deleting it.
  4. Syntax errors

✨ Proposed Changes

  1. Change update_task() in tasks.py
  2. Modify add_task() in tasks.py to validate input.
  3. Modify delete_task() in tasks.py
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions