Skip to content

Commit 41c115e

Browse files
committed
fix bytes issue
1 parent 2b942bb commit 41c115e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webapp/routers/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import uuid
55

66
from typing import Annotated, Any, Tuple, Dict
7-
from fastapi import APIRouter, Depends, HTTPException, status
7+
from fastapi import APIRouter, Depends, HTTPException, status, Response
88
from pydantic import BaseModel
99
from sqlalchemy import and_, or_, update
1010
from datetime import datetime, date
@@ -390,7 +390,7 @@ def retrieve_file_as_bytes(
390390
)
391391
print("bbbbbbbbbbbbbbbbbbbbbbbbb2")
392392
print(type(res))
393-
return res
393+
return Response(res)
394394

395395

396396
@router.get("/{inst_id}/batch/{batch_id}", response_model=DataOverview)

0 commit comments

Comments
 (0)