Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestResources.cpp @ 1201:09aa7c126be9 db-changes
URIs 'instance-tags' now indexed by the instance IDs
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Oct 2014 11:43:47 +0200 |
parents | 059391d3f8df |
children | 6164f7200c43 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Thu Oct 23 14:42:11 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Fri Oct 24 11:43:47 2014 +0200 @@ -888,7 +888,7 @@ context.GetIndex().GetChildInstances(instances, publicId); // (*) - Json::Value result = Json::arrayValue; + Json::Value result = Json::objectValue; for (Instances::const_iterator it = instances.begin(); it != instances.end(); it++) @@ -900,11 +900,11 @@ { Json::Value simplified; SimplifyTags(simplified, full); - result.append(simplified); + result[*it] = simplified; } else { - result.append(full); + result[*it] = full; } }