mirror of
https://github.com/quatalog/quatalog.git
synced 2024-11-25 16:23:09 +00:00
Fix mistake that caused "1 credits" instead of "1 credit"
This commit is contained in:
parent
1422510b9c
commit
3d8171b4fc
|
@ -215,7 +215,7 @@ void generate_course_page(const std::string& course_id,
|
|||
const auto& latest_term = terms_offered["latest_term"].asString();
|
||||
const auto& credits = terms_offered[latest_term]["credits"];
|
||||
const auto& credit_string = generate_credit_string(credits);
|
||||
const auto& credit_string_long = credit_string + " " + (credits["credMax"].asInt() == 1 ? "credit" : "credits");
|
||||
const auto& credit_string_long = credit_string + " " + (credits["max"].asInt() == 1 ? "credit" : "credits");
|
||||
|
||||
if(catalog_entry) {
|
||||
description = catalog_entry["description"].asString();
|
||||
|
|
Loading…
Reference in a new issue