From ff935a813f02aedb34b5e1ea710cc94d259f48a9 Mon Sep 17 00:00:00 2001 From: Sophia Oliinik Date: Thu, 1 Aug 2024 11:44:06 -0700 Subject: [PATCH] updating static url --- output.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/output.cpp b/output.cpp index 41de966..f514468 100644 --- a/output.cpp +++ b/output.cpp @@ -639,7 +639,6 @@ void start_table_output( bool /*for_instructor*/, // ---------------------------- // DETAILS OF EACH GRADEABLE if (DISPLAY_GRADE_DETAILS) { - Student* this_student = new Student(); for (unsigned int i = 0; i < ALL_GRADEABLES.size(); i++) { GRADEABLE_ENUM g = ALL_GRADEABLES[i]; for (int j = 0; j < GRADEABLES[g].getCount(); j++) { @@ -648,14 +647,13 @@ void start_table_output( bool /*for_instructor*/, } std::string gradeable_id = GRADEABLES[g].getID(j); std::string gradeable_name = ""; - std::string section = ""; std::string base_url = getBaseUrl(); - std::string gradeable_url = base_url + gradeable_id; - std::string fullUrl = base_url + "/" + section + "/gradeable/" + gradeable_id; + std::string semester = "f24/"; + std::string course = "sample"; + std::string fullUrl = base_url + "courses/" + semester + course + "/gradeable/" + gradeable_id; if (GRADEABLES[g].hasCorrespondence(gradeable_id)) { gradeable_name = GRADEABLES[g].getCorrespondence(gradeable_id).second; - section = this_student->getSection(); //gradeable_name = spacify(gradeable_name); gradeable_name = "" + gradeable_name + "   "; }