fix(dataset): 统一大小与版本元数据
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import uuid
|
||||
import json
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
@@ -426,6 +426,14 @@ async def dataset_preview(file_id: str) -> dict[str, Any]:
|
||||
raise fail(404, "dataset file not found")
|
||||
|
||||
|
||||
@router.get("/dataset-manage/records/{file_id}/sources")
|
||||
async def dataset_record_sources(file_id: str) -> dict[str, Any]:
|
||||
try:
|
||||
return ok({"items": get_platform_store().dataset_file_record_sources(file_id)})
|
||||
except KeyError:
|
||||
raise fail(404, "dataset file not found")
|
||||
|
||||
|
||||
@router.get("/dataset-manage/versions/{file_id}")
|
||||
async def dataset_versions(file_id: str) -> dict[str, Any]:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user