Fix targets
This commit is contained in:
parent
c9bbe3b207
commit
7c68754217
2
main.cpp
2
main.cpp
@ -272,7 +272,7 @@ std::string getTargetsJson() {
|
|||||||
auto targets = getTargets();
|
auto targets = getTargets();
|
||||||
if(!targets.empty()) {
|
if(!targets.empty()) {
|
||||||
for(const auto &target : targets) {
|
for(const auto &target : targets) {
|
||||||
res << " {\n" << " \"id\": " << target.first << "\n";
|
res << " {\n" << " \"id\": " << target.first << ",\n";
|
||||||
res << " \"name\": \"" << safeJson(target.second) << "\"\n },\n";
|
res << " \"name\": \"" << safeJson(target.second) << "\"\n },\n";
|
||||||
}
|
}
|
||||||
res.seekp(-2, std::ios_base::end);
|
res.seekp(-2, std::ios_base::end);
|
||||||
|
Loading…
Reference in New Issue
Block a user