From 262fecaa75b2909ad244f12c3b079ed3ff4ae329 Mon Sep 17 00:00:00 2001
From: Bin <bin.zheng@slooong.com>
Date: 星期三, 17 十二月 2025 11:07:12 +0800
Subject: [PATCH] 测试脚本_2
---
label_studio/data_export/api.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/label_studio/data_export/api.py b/label_studio/data_export/api.py
index 0bd4832..13f1c2a 100644
--- a/label_studio/data_export/api.py
+++ b/label_studio/data_export/api.py
@@ -208,6 +208,14 @@
download_resources = query_serializer.validated_data['download_resources']
interpolate_key_frames = query_serializer.validated_data['interpolate_key_frames']
+ # 调试日志: API 层参数
+ logger.info(f'[Export API Debug] ========== Export Request Received ==========')
+ logger.info(f'[Export API Debug] Project ID: {project.id}')
+ logger.info(f'[Export API Debug] export_type: {export_type}')
+ logger.info(f'[Export API Debug] download_resources: {download_resources}')
+ logger.info(f'[Export API Debug] only_finished: {only_finished}')
+ logger.info(f'[Export API Debug] Request GET params: {dict(request.GET)}')
+
tasks_ids = request.GET.getlist('ids[]')
logger.debug('Get tasks')
@@ -219,6 +227,8 @@
query = query.filter(annotations__isnull=False).distinct()
task_ids = query.values_list('id', flat=True)
+
+ logger.info(f'[Export API Debug] Total tasks to export: {len(task_ids)}')
logger.debug('Serialize tasks for export')
tasks = []
--
Gitblit v1.9.3