This commit is contained in:
powe97 2023-07-27 17:36:17 -04:00
parent 3aa7aaa509
commit f9a10a59dd

View file

@ -223,7 +223,9 @@ Json::Value get_data(const Json::Value& data,
}
} else {
out = data[course_id];
out[key]["prefix"] = course_id.substr(0,4);
for(const auto& key : out.getMemberNames()) {
if(out[key].isObject()) out[key]["prefix"] = course_id.substr(0,4);
}
}
return out;
}