This commit is contained in:
Stanislav Tkachenko 2019-10-19 16:44:00 +02:00
parent 82612c4707
commit dcc44e1b0e

View file

@ -55,7 +55,7 @@ def page_from_response(page: str, response: Response) -> Optional[Any]:
if page_link:
parsed = urlparse.urlparse(page_link.get("url"))
params = urlparse.parse_qs(parsed.query)
pages = params.get('page', [None])
pages: List[Any] = params.get('page', [None])
page_number = pages[0] and int(pages[0])
return page_number
else: