mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Increased the limit for max tags
This commit is contained in:
parent
23ba887d68
commit
c1faa3fd17
|
@ -735,7 +735,7 @@ class recent_changes_class(object):
|
||||||
self.map_ips = {}
|
self.map_ips = {}
|
||||||
|
|
||||||
def update_tags(self):
|
def update_tags(self):
|
||||||
tags_read = safe_read(self.safe_request("https://{wiki}.gamepedia.com/api.php?action=query&format=json&list=tags&tgprop=name%7Cdisplayname".format(wiki=settings["wiki"])), "query", "tags")
|
tags_read = safe_read(self.safe_request("https://{wiki}.gamepedia.com/api.php?action=query&format=json&list=tags&tglimit=max&tgprop=name|displayname".format(wiki=settings["wiki"])), "query", "tags")
|
||||||
if tags_read:
|
if tags_read:
|
||||||
for tag in tags_read:
|
for tag in tags_read:
|
||||||
self.tags[tag["name"]] = (BeautifulSoup(tag["displayname"], "lxml")).get_text()
|
self.tags[tag["name"]] = (BeautifulSoup(tag["displayname"], "lxml")).get_text()
|
||||||
|
|
Loading…
Reference in a new issue