Mercurial > hg > orthanc
diff OrthancServer/ServerIndex.cpp @ 1148:ac36589f699e
LastUpdate metadata is now always returned for patients, studies and series
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Sep 2014 14:36:16 +0200 |
parents | f167b672db94 |
children | badc14fee61f |
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp Thu Sep 11 14:15:30 2014 +0200 +++ b/OrthancServer/ServerIndex.cpp Thu Sep 11 14:36:16 2014 +0200 @@ -861,6 +861,10 @@ type == ResourceType_Series) { result["IsStable"] = !unstableResources_.Contains(id); + + tmp = db_->GetMetadata(id, MetadataType_LastUpdate); + if (tmp.size() != 0) + result["LastUpdate"] = tmp; } return true;