diff --git a/earwigbot/commands/afc_report.py b/earwigbot/commands/afc_report.py index f44ae2b..3417f3b 100644 --- a/earwigbot/commands/afc_report.py +++ b/earwigbot/commands/afc_report.py @@ -31,7 +31,6 @@ class Command(BaseCommand): def process(self, data): self.site = self.bot.wiki.get_site() - self.site._maxlag = None self.data = data try: diff --git a/earwigbot/commands/afc_status.py b/earwigbot/commands/afc_status.py index c3952ce..dd34ec2 100644 --- a/earwigbot/commands/afc_status.py +++ b/earwigbot/commands/afc_status.py @@ -45,7 +45,6 @@ class Command(BaseCommand): def process(self, data): self.site = self.bot.wiki.get_site() - self.site._maxlag = None if data.line[1] == "JOIN": status = " ".join(("\x02Current status:\x0F", self.get_status())) diff --git a/earwigbot/commands/editcount.py b/earwigbot/commands/editcount.py index b503d8a..237d18d 100644 --- a/earwigbot/commands/editcount.py +++ b/earwigbot/commands/editcount.py @@ -42,7 +42,6 @@ class Command(BaseCommand): name = ' '.join(data.args) site = self.bot.wiki.get_site() - site._maxlag = None user = site.get_user(name) try: diff --git a/earwigbot/commands/registration.py b/earwigbot/commands/registration.py index ad42269..a36bcab 100644 --- a/earwigbot/commands/registration.py +++ b/earwigbot/commands/registration.py @@ -42,7 +42,6 @@ class Command(BaseCommand): name = ' '.join(data.args) site = self.bot.wiki.get_site() - site._maxlag = None user = site.get_user(name) try: diff --git a/earwigbot/commands/rights.py b/earwigbot/commands/rights.py index 38045a6..10c5137 100644 --- a/earwigbot/commands/rights.py +++ b/earwigbot/commands/rights.py @@ -40,7 +40,6 @@ class Command(BaseCommand): name = ' '.join(data.args) site = self.bot.wiki.get_site() - site._maxlag = None user = site.get_user(name) try: diff --git a/earwigbot/wiki/category.py b/earwigbot/wiki/category.py index aa3e0d7..9f43e7b 100644 --- a/earwigbot/wiki/category.py +++ b/earwigbot/wiki/category.py @@ -78,7 +78,7 @@ class Category(Page): if not limit: params["cmlimit"] = 50 # Default value - result = self._site._api_query(params) + result = self._site.api_query(**params) members = result['query']['categorymembers'] return [member["title"] for member in members]