Merge pull request #102 from donfranio/fix-wrong-config-param-type-max_page

read 'max_page' as int
This commit is contained in:
依云 2019-03-22 18:58:15 +08:00 committed by GitHub
commit 34ce4b0678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: