Skip to content

feat(db): new column "number_of_answers" in report table (#7)

Julian Ammouche Ottosen requested to merge 7-save-resulting-data-to-database into dev

Created a temporary endpoint to test this. This is should only be temporary because the report creationg should be triggered after the AI is finished in its own endpoint.

To test this send a POST message to localhost:8000/report. Example body:

{
  "report_content": [
    {
      "category1": ["answer1", "answer2", "answer3"],
      "category2": ["answer4", "answer5", "answer6"]
    }
  ],
  "number_of_answers": 6,
  "unit_id": 1,
  "course_id": "TDT4100",
  "course_semester": "fall2023"
}

Then use a program like DB Browser to see that a new row has been added in the Report-table.

Co-authored by: Otto @ottohf

Closes #7 (closed)

Merge request reports

Loading