Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Harlalka <[email protected]>
  • Loading branch information
rajivharlalka committed Sep 24, 2024
1 parent 5ae618e commit 18012e9
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 @@ -203,7 +203,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, approve_status, upload_timestamp 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, filelink, id, from_library, approve_status, upload_timestamp FROM iqps WHERE approve_status = false and is_deleted=false ORDER BY upload_timestamp ASC")
if err != nil {
sendErrorResponse(w, http.StatusInternalServerError, err.Error(), nil)
return
Expand Down

0 comments on commit 18012e9

Please sign in to comment.