aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/wikipedia.py
diff options
context:
space:
mode:
authorGravatar D0rs4n <[email protected]>2021-08-07 23:02:18 +0200
committerGravatar D0rs4n <[email protected]>2021-08-07 23:02:18 +0200
commit22abc00742a610443b2cffe3ae609056a98da713 (patch)
treecd5be6ae7d30c8c780f5728fc3280ea262b93b8c /bot/exts/evergreen/wikipedia.py
parentUpdate Hacktoberstats' get_october_prs function to use aiohttps get params (diff)
Improve code consistency in Movie, Wikipedia and Hactoberstats Cogs
Diffstat (limited to 'bot/exts/evergreen/wikipedia.py')
-rw-r--r--bot/exts/evergreen/wikipedia.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/wikipedia.py b/bot/exts/evergreen/wikipedia.py
index 28bbf0de..7b96cb7b 100644
--- a/bot/exts/evergreen/wikipedia.py
+++ b/bot/exts/evergreen/wikipedia.py
@@ -44,7 +44,7 @@ class WikipediaSearch(commands.Cog):
async def wiki_request(self, channel: TextChannel, search: str) -> Optional[List[str]]:
"""Search wikipedia search string and return formatted first 10 pages found."""
- params = dict(WIKI_PARAMS, srlimit=10, srsearch=search)
+ params = WIKI_PARAMS | {"srlimit": 10, "srsearch": search}
async with self.bot.http_session.get(url=SEARCH_API, params=params) as resp:
if resp.status == 200:
raw_data = await resp.json()