mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-29 15:55:55 +00:00
fix
This commit is contained in:
parent
3aa7aaa509
commit
f9a10a59dd
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue