Mercurial > hg > orthanc
diff Core/JobsEngine/JobInfo.cpp @ 2647:73d7d95dd75e jobs
removal of internal job information
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 31 May 2018 17:45:09 +0200 |
parents | 7b72061157b1 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Core/JobsEngine/JobInfo.cpp Thu May 31 17:30:22 2018 +0200 +++ b/Core/JobsEngine/JobInfo.cpp Thu May 31 17:45:09 2018 +0200 @@ -119,8 +119,7 @@ } - void JobInfo::Serialize(Json::Value& target, - bool includeInternalContent) const + void JobInfo::Format(Json::Value& target) const { target = Json::objectValue; target["ID"] = id_; @@ -134,12 +133,7 @@ target["Progress"] = boost::math::iround(status_.GetProgress() * 100.0f); target["Type"] = status_.GetJobType(); - target["PublicContent"] = status_.GetPublicContent(); - - if (includeInternalContent) - { - target["InternalContent"] = status_.GetInternalContent(); - } + target["Content"] = status_.GetPublicContent(); if (HasEstimatedTimeOfArrival()) {