mirror of
https://github.com/quatalog/quatalog.git
synced 2024-11-26 00:33:24 +00:00
Use the fix course IDs function to fix course IDs in course pills
This commit is contained in:
parent
f3801ba31c
commit
f6339a6d94
|
@ -569,10 +569,7 @@ get_course_title_and_description(const std::string& course_id,
|
|||
void generate_course_pill(std::string course_id,
|
||||
const quatalog_data_t& qlog,
|
||||
std::ostream& os) {
|
||||
if(course_id.substr(0,3) == "STS") {
|
||||
course_id[3] = 'O';
|
||||
}
|
||||
course_id[4] = '-';
|
||||
course_id = fix_course_ids(course_id);
|
||||
const auto& title = get_course_title_and_description(course_id,qlog).first;
|
||||
tag(os,TAG::INLINE) << R"(<a class="course-pill" href=")" << course_id
|
||||
<< R"(">)"
|
||||
|
|
Loading…
Reference in a new issue