Mercurial > hg > orthanc
changeset 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 | 1e1390665639 |
children | e85e668d2147 |
files | OrthancServer/OrthancRestApi/OrthancRestResources.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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; } }