[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user