small improvements

This commit is contained in:
ned
2023-06-22 20:13:02 +02:00
parent cc9f33b1d3
commit 0b0771aaa4
3 changed files with 25 additions and 24 deletions

View File

@@ -37,7 +37,7 @@ class WebSearchPlugin(Plugin):
region='wt-wt',
safesearch='off'
)
results = list(islice(ddgs_gen, 8))
results = list(islice(ddgs_gen, 3))
if results is None or len(results) == 0:
return {"Result": "No good DuckDuckGo Search Result was found"}