feat: typos

This commit is contained in:
junjun
2025-07-25 17:10:58 +08:00
parent 91e6c46eb1
commit 4521de45a1
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -536,8 +536,8 @@ class LLMService:
).first()
if obj is not None:
res.append(transRecord2DTO(self.session, permission))
wheres = transFilterTree(self.session, res, self.ds)
filters.append({"table": table.table_name, "filter": wheres})
where_str = transFilterTree(self.session, res, self.ds)
filters.append({"table": table.table_name, "filter": where_str})
filter = json.dumps(filters, ensure_ascii=False)
+2 -2
View File
@@ -278,8 +278,8 @@ def preview(session: SessionDep, current_user: CurrentUser, id: int, data: Table
).first()
if obj is not None:
res.append(transRecord2DTO(session, permission))
wheres = transFilterTree(session, res, ds)
where = (' where ' + wheres) if wheres is not None and wheres != '' else ''
where_str = transFilterTree(session, res, ds)
where = (' where ' + where_str) if where_str is not None and where_str != '' else ''
fields = [f.field_name for f in f_list]
if fields is None or len(fields) == 0: