Skip to content

Commit 3a53dd7

Browse files
committed
path for example and seed upload fixed
1 parent ac5d9c6 commit 3a53dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def _flatten(d: dict, parent_key:str = "", sep:str=".") -> dict:
426426
if not request.path:
427427
return JSONResponse(status_code=400, content={"status": "failed", "error": "path missing"})
428428

429-
path = path_manager.get_str_path(request.path)
429+
path = request.path
430430
if not os.path.exists(path):
431431
return JSONResponse(status_code=404, content={"status": "failed", "error": "file not found"})
432432

@@ -472,7 +472,7 @@ async def get_dataset_size(request: RelativePath):
472472
if not request.path:
473473
return JSONResponse(status_code=400, content={"status": "failed", "error": "path missing"})
474474

475-
path = path_manager.get_str_path(request.path)
475+
path = request.path
476476
if not os.path.exists(path):
477477
return JSONResponse(status_code=404, content={"status": "failed", "error": "file not found"})
478478

0 commit comments

Comments
 (0)