Skip to content

Commit

Permalink
update json
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Apr 12, 2023
1 parent 743f2ff commit 194017c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/modelbox/server/plugin/editor/editor_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void ModelboxEditorPlugin::HandlerGraphModifyTime(
modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson(
const nlohmann::json& body, std::string& cmd) {
nlohmann::json error_json;
for (auto& element : body.items()) {
for (const auto& element : body.items()) {
cmd += " -" + element.key();
if (element.value().is_null()) {
continue;
Expand All @@ -548,7 +548,7 @@ modelbox::Status ModelboxEditorPlugin::GenerateCommandFromJson(
cmd += " ";
}

for (auto& i : port.items()) {
for (const auto& i : port.items()) {
cmd += i.key() + "=" + i.value().dump();
if (i != port.items().end()) {
cmd += ",";
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/CMake/local-package.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ExternalProject_Add(
# nlohmann json
ExternalProject_Add(
nlohmann
URL @LOCAL_PACKAGE_PATH@/v3.7.3.tar.gz
URL @LOCAL_PACKAGE_PATH@/v3.11.2.tar.gz
SOURCE_DIR ${THIRDPARTY_DOWNLOAD_DIR}/nlohmann
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down
4 changes: 2 additions & 2 deletions thirdparty/CMake/pre-download.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (NOT @USE_CN_MIRROR@)
set(TINYLOG_DOWNLOAD_URL "https://github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
set(PYBIND11_DOWNLOAD_URL "https://github.com/pybind/pybind11/archive/refs/tags/v2.9.1.zip")
set(TOML11_DOWNLOAD_URL "https://github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip")
set(NLOHMANN_DOWNLOAD_URL "https://github.com/nlohmann/json/releases/download/v3.11.2/include.zip")
set(CPP_HTTPLIB_DOWNLOAD_URL "https://github.com/yhirose/cpp-httplib/archive/refs/tags/v0.10.4.zip")
set(APIGW_CPP_SDK_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-binary/releases/download/BinaryArchive/APIGW-cpp-sdk.zip")
set(MODELBOX_WEBUI_DOWNLOAD_URL "https://github.com/modelbox-ai/modelbox-webui/archive/refs/tags/0.1.3.zip")
Expand All @@ -44,7 +44,7 @@ else()
set(TINYLOG_DOWNLOAD_URL "https://ghproxy.com/github.com/pymumu/tinylog/archive/refs/tags/v1.6.zip")
set(PYBIND11_DOWNLOAD_URL "https://gitcode.net/mirrors/pybind/pybind11/-/archive/v2.9.1/pybind11-v2.9.1.zip")
set(TOML11_DOWNLOAD_URL "https://ghproxy.com/github.com/ToruNiina/toml11/archive/refs/tags/v3.7.1.zip")
set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.7.3.zip")
set(NLOHMANN_DOWNLOAD_URL "https://gitcode.net/mirrors/nlohmann/json/-/archive/v3.7.3/json-v3.11.2.zip")
set(CPP_HTTPLIB_DOWNLOAD_URL "https://gitcode.net/mirrors/yhirose/cpp-httplib/-/archive/v0.10.4/cpp-httplib-v0.10.4.zip")
set(APIGW_CPP_SDK_DOWNLOAD_URL "https://obs.cn-north-1.myhuaweicloud.com/apig-sdk/APIGW-cpp-sdk.zip")
set(MODELBOX_WEBUI_DOWNLOAD_URL "https://gitee.com/modelbox/modelbox-webui/repository/archive/tags/0.1.3.zip")
Expand Down

0 comments on commit 194017c

Please sign in to comment.