add casting 'max_page' to int

This commit is contained in:
Frank Scherrer 2019-03-22 10:14:55 +01:00
parent a7f7a632a2
commit e2f68f764d
No known key found for this signature in database
GPG key ID: 9080E80AF6220684

View file

@ -62,7 +62,7 @@ async def get_version_real(name, conf, **kwargs):
return await max_tag(partial(
session.get, headers=headers, **kwargs),
url, name, ignored_tags, include_tags_pattern,
max_page = conf.get("max_page", 1),
max_page = conf.getint("max_page", 1),
)
async with session.get(url, headers=headers, **kwargs) as res: