mirror of
https://github.com/quatalog/quatalog.git
synced 2025-11-30 08:07:34 +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 {
|
} else {
|
||||||
out = data[course_id];
|
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;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue