From 0c466387b881d0eb648c6b923dff16e538442f2c Mon Sep 17 00:00:00 2001 From: D0rs4n <41237606+D0rs4n@users.noreply.github.com> Date: Fri, 20 Aug 2021 22:21:27 +0200 Subject: Improve overall code transparency in the Wikipedia Cog Co-authored-by: Bluenix --- bot/exts/evergreen/wikipedia.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bot') 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( -- cgit v1.2.3