Fix mistake that caused "1 credits" instead of "1 credit"

This commit is contained in:
3eef8a28f26fb2bcc514e6f1938929a1f931762 2023-02-28 17:10:35 -05:00
parent 1422510b9c
commit 3d8171b4fc

View file

@ -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();