Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: update recommend app params error (#197)

John Wangb6cca595179d
diff --git a/api/controllers/console/admin.py b/api/controllers/console/admin.py
index 7a337a4918e..9a52e304a30 100644
--- a/api/controllers/console/admin.py
+++ b/api/controllers/console/admin.py
@@ -89,12 +89,12 @@ class InsertExploreAppListApi(Resource):
return {'result': 'success'}, 201
else:
recommended_app.description = {
- 'en': args['desc_en'],
- 'zh': args['desc_zh']
+ 'en': desc,
+ 'zh': desc if not args['desc_zh'] else args['desc_zh']
}
- recommended_app.copyright = args['copyright']
- recommended_app.privacy_policy = args['privacy_policy']
+ recommended_app.copyright = copy_right
+ recommended_app.privacy_policy = privacy_policy
recommended_app.category = args['category']
recommended_app.position = args['position']