Archived
1
0
Fork 0

Update wikilib_v2.py

This commit is contained in:
yzhh 2022-01-17 23:36:41 +08:00
parent bf16cd5a96
commit 2637f59611

View file

@ -114,7 +114,7 @@ class WikiLib:
async def get_json_from_api(self, api, log=False, **kwargs) -> dict:
if kwargs is not None:
api = api + '?' + urllib.parse.urlencode(kwargs) + '&format=json'
Logger.info(api)
# Logger.info(api)
else:
raise ValueError('kwargs is None')
return await get_url(api, status_code=200, headers=self.headers, fmt="json", log=log)