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(api): Code-Based Extension cause error on position map sorting (#7934)

陳鈞80d14c9b2255
diff --git a/api/core/extension/extensible.py b/api/core/extension/extensible.py
index 0296126d8b0..8d73aa2b8ba 100644
--- a/api/core/extension/extensible.py
+++ b/api/core/extension/extensible.py
@@ -65,7 +65,7 @@ class Extensible:
if os.path.exists(builtin_file_path):
with open(builtin_file_path, encoding='utf-8') as f:
position = int(f.read().strip())
- position_map[extension_name] = position
+ position_map[extension_name] = position
if (extension_name + '.py') not in file_names:
logging.warning(f"Missing {extension_name}.py file in {subdir_path}, Skip.")