Mercurial > hg > orthanc
diff OrthancServer/DatabaseWrapper.cpp @ 205:6ab754744446
logging of completed series
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Nov 2012 11:34:54 +0100 |
parents | 7f4acf490179 |
children | 4453a010d0db |
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp Wed Nov 28 11:27:57 2012 +0100 +++ b/OrthancServer/DatabaseWrapper.cpp Wed Nov 28 11:34:54 2012 +0100 @@ -533,12 +533,14 @@ int64_t internalId = s.ColumnInt(2); ResourceType resourceType = static_cast<ResourceType>(s.ColumnInt(3)); const std::string& date = s.ColumnString(4); + std::string publicId = GetPublicId(internalId); Json::Value item = Json::objectValue; item["Seq"] = static_cast<int>(seq); item["ChangeType"] = ToString(changeType); item["ResourceType"] = ToString(resourceType); - item["ID"] = GetPublicId(internalId); + item["ID"] = publicId; + item["Path"] = GetBasePath(resourceType, publicId); item["Date"] = date; last = seq;