From f575c787767573ef3e0968e0a45c2148406cf40e Mon Sep 17 00:00:00 2001 From: powe97 <116031952+powe97@users.noreply.github.com> Date: Sat, 1 Jul 2023 14:27:07 -0400 Subject: [PATCH] Fix STSO/S/H discrepancy in SIS links --- src/GenerateHtml.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/GenerateHtml.cpp b/src/GenerateHtml.cpp index b351a07..be4d819 100644 --- a/src/GenerateHtml.cpp +++ b/src/GenerateHtml.cpp @@ -198,12 +198,18 @@ Json::Value get_data(const Json::Value& data, for(const auto& key : stsh.getMemberNames()) { out[key] = stsh[key]; + if(out[key].isObject()) + out[key]["prefix"] = "STSH"; } for(const auto& key : stss.getMemberNames()) { out[key] = stss[key]; + if(out[key].isObject()) + out[key]["prefix"] = "STSS"; } for(const auto& key : stso.getMemberNames()) { out[key] = stso[key]; + if(out[key].isObject()) + out[key]["prefix"] = "STSO"; } return out; @@ -413,7 +419,7 @@ void generate_table_cell(const int year, tag(os,TAG::BEGIN,R"(span class="term-course-info")"); tag(os,TAG::INLINE) << R"()" << course_title << " (" << credit_string << "c)";