fix: table numbers

This commit is contained in:
junjun
2025-07-16 18:32:03 +08:00
parent ce0ed8f2ea
commit b68427af6d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ async def get_tables_by_conf(session: SessionDep, ds: CoreDatasource):
@router.post("/getFields/{id}/{table_name}")
async def get_tables(session: SessionDep, id: int, table_name: str):
async def get_fields(session: SessionDep, id: int, table_name: str):
return getFields(session, id, table_name)
+1 -1
View File
@@ -263,7 +263,7 @@ def fieldEnum(session: SessionDep, id: int):
def updateNum(session: SessionDep, ds: CoreDatasource):
all_tables = get_tables(ds)
all_tables = get_tables(ds) if ds.type != 'excel' else json.loads(aes_decrypt(ds.configuration)).get('sheets')
selected_tables = get_tables_by_ds_id(session, ds.id)
num = f'{len(selected_tables)}/{len(all_tables)}'