mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-30 16:17:25 +00:00
Undo STSS/STSH merger logic, just messes shit up
This commit is contained in:
parent
3e4be443be
commit
986c495712
|
|
@ -148,12 +148,6 @@ void handle_course(const Json::Value& course,
|
||||||
quatalog_data_t& data,
|
quatalog_data_t& data,
|
||||||
const Json::Value& term_prereqs) {
|
const Json::Value& term_prereqs) {
|
||||||
std::string course_code = course["id"].asString();
|
std::string course_code = course["id"].asString();
|
||||||
// Accounts for STSS/STSH merger. Perhaps not a perfect
|
|
||||||
// way to do this, but this makes generating the HTML
|
|
||||||
// much easier
|
|
||||||
if(course_code.substr(0,3) == "STS") {
|
|
||||||
course_code[4] = 'O';
|
|
||||||
}
|
|
||||||
auto& course_terms = data.terms_offered[course_code];
|
auto& course_terms = data.terms_offered[course_code];
|
||||||
const Json::Value& sections = course["sections"];
|
const Json::Value& sections = course["sections"];
|
||||||
handle_everything(sections,course,term,course_terms,data.prerequisites,term_prereqs);
|
handle_everything(sections,course,term,course_terms,data.prerequisites,term_prereqs);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue