chore: apply ruff E501 line-too-long linter rule (#8275)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
56c90e212a
commit
c69f5b07ba
85 changed files with 459 additions and 324 deletions
|
|
@ -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"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue