Skip to content

Commit

Permalink
fix: include semester in unapproved papers endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Sep 20, 2024
1 parent 07b549c commit 1473a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func ListAllPapers(w http.ResponseWriter, r *http.Request) {

func ListUnapprovedPapers(w http.ResponseWriter, r *http.Request) {
db := db.GetDB()
rows, err := db.Db.Query(context.Background(), "SELECT course_code, course_name, year, exam,filelink,id, from_library FROM iqps WHERE approve_status = false ORDER BY upload_timestamp ASC")
rows, err := db.Db.Query(context.Background(), "SELECT course_code, course_name, year, exam, semester, filelink, id, from_library FROM iqps WHERE approve_status = false ORDER BY upload_timestamp ASC")
if err != nil {
sendErrorResponse(w, http.StatusInternalServerError, err.Error(), nil)
return
Expand Down

0 comments on commit 1473a16

Please sign in to comment.