Merge branch 'unstable' into 'testing'

Increased the limit for max tags

See merge request piotrex43/RcGcDw!15
This commit is contained in:
Frisk 2018-07-28 08:52:44 +00:00
commit 378c10f3ec

View file

@ -735,7 +735,7 @@ class recent_changes_class(object):
self.map_ips = {}
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:
for tag in tags_read:
self.tags[tag["name"]] = (BeautifulSoup(tag["displayname"], "lxml")).get_text()