chore: cleanup ruff flake8-simplify linter rules (#8286)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -201,9 +201,7 @@ class ListWorksheetRecordsTool(BuiltinTool):
|
||||
elif value.startswith('[{"organizeId"'):
|
||||
value = json.loads(value)
|
||||
value = "、".join([item["organizeName"] for item in value])
|
||||
elif value.startswith('[{"file_id"'):
|
||||
value = ""
|
||||
elif value == "[]":
|
||||
elif value.startswith('[{"file_id"') or value == "[]":
|
||||
value = ""
|
||||
elif hasattr(value, "accountId"):
|
||||
value = value["fullname"]
|
||||
|
||||
Reference in New Issue
Block a user