update feeds fetch

Remove counters and pagination for increased performance
This commit is contained in:
Markus-Rost 2020-12-04 16:54:58 +01:00
parent 1ddff46ae9
commit fc29d09708

View file

@ -54,7 +54,7 @@ class Wiki:
@staticmethod
async def fetch_feeds(wiki, session: aiohttp.ClientSession) -> aiohttp.ClientResponse:
url_path = "{wiki}wikia.php".format(wiki=wiki)
params = {"controller": "DiscussionPost", "method": "getPosts", "sortDirection": "descending", "sortKey": "creation_date", "limit": 20}
params = {"controller": "DiscussionPost", "method": "getPosts", "includeCounters": "false", "sortDirection": "descending", "sortKey": "creation_date", "limit": 20}
try:
response = await session.get(url_path, params=params)
response.raise_for_status()