From 2bc48fd4656f63e204c1e51c18d744ce246ccf27 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sat, 31 Jan 2026 14:14:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(annotation):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E6=A0=87=E7=AD=BE=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=A3=85=E9=A5=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 _decorate_label_config_for_editor 方法调用 - 简化了标签配置获取流程 - 移除了不必要的条件检查逻辑 --- runtime/datamate-python/app/module/annotation/service/editor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/datamate-python/app/module/annotation/service/editor.py b/runtime/datamate-python/app/module/annotation/service/editor.py index a3aa466..8457d3b 100644 --- a/runtime/datamate-python/app/module/annotation/service/editor.py +++ b/runtime/datamate-python/app/module/annotation/service/editor.py @@ -166,8 +166,6 @@ class AnnotationEditorService: label_config = project.configuration.get("label_config") if not label_config: label_config = await self._get_label_config(project.template_id) - if label_config: - label_config = self._decorate_label_config_for_editor(label_config) return label_config @staticmethod