mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-30 08:07:34 +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,
|
void generate_course_pill(std::string course_id,
|
||||||
const quatalog_data_t& qlog,
|
const quatalog_data_t& qlog,
|
||||||
std::ostream& os) {
|
std::ostream& os) {
|
||||||
if(course_id.substr(0,3) == "STS") {
|
course_id = fix_course_ids(course_id);
|
||||||
course_id[3] = 'O';
|
|
||||||
}
|
|
||||||
course_id[4] = '-';
|
|
||||||
const auto& title = get_course_title_and_description(course_id,qlog).first;
|
const auto& title = get_course_title_and_description(course_id,qlog).first;
|
||||||
tag(os,TAG::INLINE) << R"(<a class="course-pill" href=")" << course_id
|
tag(os,TAG::INLINE) << R"(<a class="course-pill" href=")" << course_id
|
||||||
<< R"(">)"
|
<< R"(">)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue