Skip to content

Commit

Permalink
Fix output for ajax-module-connector.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Jan 13, 2024
1 parent cd2106b commit 8d86e6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yellowstone/wikidot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self) -> None:
use_datetime=True,
)

def ajax_module_connector(self, site_slug: str, data: dict) -> dict:
def ajax_module_connector(self, site_slug: str, data: dict) -> str:
logger.debug("Making AJAX call for site '%s': %r", site_slug, data)

# Set token7
Expand All @@ -50,7 +50,7 @@ def ajax_module_connector(self, site_slug: str, data: dict) -> dict:
match response["status"]:
case "ok":
body = response["body"]
assert isinstance(body, dict)
assert isinstance(body, str)
return body
case "wrong_token7":
raise WikidotTokenError
Expand Down

0 comments on commit 8d86e6d

Please sign in to comment.