mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
update feeds fetch
Remove counters and pagination for increased performance
This commit is contained in:
parent
1ddff46ae9
commit
fc29d09708
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue