Mercurial > hg > orthanc
diff OrthancServer/Plugins/Samples/AdvancedStorage/Plugin.cpp @ 5808:63c025cf6958 attach-custom-data
cleanup
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 24 Sep 2024 12:11:25 +0200 |
parents | 8279eaab0d1d |
children | a451777236fb |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/AdvancedStorage/Plugin.cpp Tue Sep 24 11:39:52 2024 +0200 +++ b/OrthancServer/Plugins/Samples/AdvancedStorage/Plugin.cpp Tue Sep 24 12:11:25 2024 +0200 @@ -154,8 +154,9 @@ Json::Value customDataJson; customDataJson["Version"] = 1; + // no need to store the path since if we are in the default mode if (namingScheme_ != "OrthancDefault") - { // no need to store the pathc since we are in the default mode + { customDataJson["Path"] = path.string(); } @@ -164,7 +165,7 @@ customDataJson["StorageId"] = currentStorageId_; } - return Orthanc::Toolbox::WriteFastJson(output, customDataJson); + return Orthanc::Toolbox::WriteFastJson(output, customDataJson); } void AddSplitDateDicomTagToPath(fs::path& path, const Json::Value& tags, const char* tagName, const char* defaultValue = NULL)