Fix name of module

This commit is contained in:
Edward Betts 2023-12-06 20:56:59 +00:00
parent dd9b7be198
commit d76c74395b

View file

@ -4,7 +4,7 @@ import typing
from pprint import pprint
from typing import Any, cast
from . import wikidata_oauth
from . import mediawiki_oauth
wiki_hostname = "en.wikipedia.org"
wiki_api_php = f"https://{wiki_hostname}/w/api.php"
@ -29,7 +29,7 @@ def parse_page(enwiki: str) -> dict[str, Any]:
def call(params: dict[str, str | int]) -> dict[str, typing.Any]:
"""Make GET request to mediawiki API."""
data = wikidata_oauth.api_post_request(params)
data = mediawiki_oauth.api_post_request(params)
return cast(dict[str, Any], data.json())