素材列表展示

This commit is contained in:
18610128193
2026-06-24 18:47:36 +08:00
parent 28c6e2c772
commit 8aafd7de32
6 changed files with 239 additions and 15 deletions
@@ -551,6 +551,7 @@ async def get_upload_history(
GeneratedResource.storage_path,
GeneratedResource.file_size_bytes,
GeneratedResource.model_name,
GeneratedResource.file_name,
)
.outerjoin(
GeneratedResource,
@@ -591,7 +592,7 @@ async def get_upload_history(
}
data = []
for task, resource_type, resource_url, remote_url, storage_type, storage_path, file_size_bytes, model_name in tasks:
for task, resource_type, resource_url, remote_url, storage_type, storage_path, file_size_bytes, model_name, file_name in tasks:
data.append({
"task_id": task.id,
"status": task.status,
@@ -608,6 +609,7 @@ async def get_upload_history(
"note": task.note,
"created_at": task.created_at,
"updated_at": task.updated_at,
"file_name": file_name,
})
return {