Explorar el Código

fix(api): Code-Based Extension cause error on position map sorting (#7934)

Signed-off-by: 陳鈞 <jim60105@gmail.com>
陳鈞 hace 7 meses
padre
commit
80d14c9b22
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/core/extension/extensible.py

+ 1 - 1
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.")