Skip to content

Commit becbba3

Browse files
committed
feat: Support for batch uploading data table notes #557
1 parent 99dcba3 commit becbba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/datasource/api/datasource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ async def upload_ds_schema(session: SessionDep, id: int = Path(..., description=
456456
field_sheets = []
457457
table_sheet = None # []
458458
for sheet in sheet_names:
459-
df = pd.read_excel(excel_file, sheet_name=sheet, engine="openpyxl")
459+
df = pd.read_excel(excel_file, sheet_name=sheet, engine="openpyxl").fillna('')
460460
if sheet == t_sheet:
461461
table_sheet = df.where(pd.notnull(df), None).to_dict(orient="records")
462462
else:

0 commit comments

Comments
 (0)