Fix name of module
This commit is contained in:
parent
dd9b7be198
commit
d76c74395b
|
@ -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())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue