aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-20 22:21:27 +0200
committerGravatar GitHub <[email protected]>2021-08-20 22:21:27 +0200
commit0c466387b881d0eb648c6b923dff16e538442f2c (patch)
tree2570b628d46b29607f6e136ca91dca36a0a9a30c
parentRemove unnecessary variables from the Wikipedia cog (diff)
Improve overall code transparency in the Wikipedia Cog
Co-authored-by: Bluenix <[email protected]>
-rw-r--r--bot/exts/evergreen/wikipedia.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py
index 01c13005..27e68397 100644
--- a/bot/exts/evergreen/wikipedia.py
+++ b/bot/exts/evergreen/wikipedia.py
@@ -60,9 +60,7 @@ class WikipediaSearch(commands.Cog):
lines = []
if raw_data["query"]["searchinfo"]["totalhits"]:
- results = raw_data["query"]["search"]
-
- for article in results:
+ for article in raw_data["query"]["search"]:
line = WIKI_SEARCH_RESULT.format(
name=article["title"],
description=unescape(