mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-15 22:06:52 +08:00
chore: apply ruff E501 line-too-long linter rule (#8275)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -64,7 +64,10 @@ class SearchAPI:
|
||||
elif type == "link":
|
||||
if "answer_box" in res and "organic_result" in res["answer_box"]:
|
||||
if "title" in res["answer_box"]["organic_result"]:
|
||||
toret = f"[{res['answer_box']['organic_result']['title']}]({res['answer_box']['organic_result']['link']})\n"
|
||||
toret = (
|
||||
f"[{res['answer_box']['organic_result']['title']}]"
|
||||
f"({res['answer_box']['organic_result']['link']})\n"
|
||||
)
|
||||
elif "organic_results" in res and "link" in res["organic_results"][0]:
|
||||
toret = ""
|
||||
for item in res["organic_results"]:
|
||||
|
||||
Reference in New Issue
Block a user