[fix]:[FL-197][修复 import-batches 接口无数据时返回 404 的问题]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
chengkai3
2026-06-27 22:15:42 +08:00
parent fdbf8839c5
commit cf68e6104b
+1
View File
@@ -2582,6 +2582,7 @@ def list_lightning_import_batches(
# 获取总数
total_query = (
select(func.count(func.distinct(batch_key)))
.select_from(LightningCurrentEvent)
.where(*filters)
)
total = db.execute(total_query).scalar() or 0