Increased the limit for max tags

This commit is contained in:
Frisk 2018-07-28 10:36:29 +02:00
parent 23ba887d68
commit c1faa3fd17
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -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()