Skip to content

Commit

Permalink
feat: send approve_status and upload_timestamp with unapproved pa…
Browse files Browse the repository at this point in the history
…per data
  • Loading branch information
harshkhandeparkar committed Sep 21, 2024
1 parent 514512c commit 4cacf55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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, filelink, id, from_library, approve_status, upload_timestamp FROM iqps WHERE approve_status = false ORDER BY upload_timestamp ASC")
if err != nil {
sendErrorResponse(w, http.StatusInternalServerError, err.Error(), nil)
return
Expand Down
2 changes: 1 addition & 1 deletion frontend/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VITE_BACKEND_URL=http://localhost:5000
VITE_BACKEND_URL=https://iqps-server.metakgp.org
VITE_MAX_UPLOAD_LIMIT=10
VITE_GH_OAUTH_CLIENT_ID=Ov23lifQ41R6QGgUN4rM

0 comments on commit 4cacf55

Please sign in to comment.