Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi.cpp @ 197:530a25320461
removal of text as ids in sqlite db
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Nov 2012 14:59:55 +0100 |
parents | a1b9d1e1497b |
children | 663cc6c46d0a |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp Fri Nov 16 08:23:05 2012 +0100 +++ b/OrthancServer/OrthancRestApi.cpp Tue Nov 27 14:59:55 2012 +0100 @@ -572,14 +572,14 @@ std::string fileUuid, contentType, filename; if (uri[2] == "file") { - existingResource = index_.GetFile(fileUuid, compressionType, uri[1], "dicom"); + existingResource = index_.GetFile(fileUuid, compressionType, uri[1], AttachedFileType_Dicom); contentType = "application/dicom"; filename = fileUuid + ".dcm"; } else if (uri[2] == "tags" || uri[2] == "simplified-tags") { - existingResource = index_.GetFile(fileUuid, compressionType, uri[1], "json"); + existingResource = index_.GetFile(fileUuid, compressionType, uri[1], AttachedFileType_Json); contentType = "application/json"; filename = fileUuid + ".json"; } @@ -644,7 +644,7 @@ { std::string uuid; CompressionType compressionType; - existingResource = index_.GetFile(uuid, compressionType, uri[1], "dicom"); + existingResource = index_.GetFile(uuid, compressionType, uri[1], AttachedFileType_Dicom); std::string action = uri[2];