@@ -31,7 +31,6 @@ class Command(BaseCommand): | |||||
def process(self, data): | def process(self, data): | ||||
self.site = self.bot.wiki.get_site() | self.site = self.bot.wiki.get_site() | ||||
self.site._maxlag = None | |||||
self.data = data | self.data = data | ||||
try: | try: | ||||
@@ -45,7 +45,6 @@ class Command(BaseCommand): | |||||
def process(self, data): | def process(self, data): | ||||
self.site = self.bot.wiki.get_site() | self.site = self.bot.wiki.get_site() | ||||
self.site._maxlag = None | |||||
if data.line[1] == "JOIN": | if data.line[1] == "JOIN": | ||||
status = " ".join(("\x02Current status:\x0F", self.get_status())) | status = " ".join(("\x02Current status:\x0F", self.get_status())) | ||||
@@ -42,7 +42,6 @@ class Command(BaseCommand): | |||||
name = ' '.join(data.args) | name = ' '.join(data.args) | ||||
site = self.bot.wiki.get_site() | site = self.bot.wiki.get_site() | ||||
site._maxlag = None | |||||
user = site.get_user(name) | user = site.get_user(name) | ||||
try: | try: | ||||
@@ -42,7 +42,6 @@ class Command(BaseCommand): | |||||
name = ' '.join(data.args) | name = ' '.join(data.args) | ||||
site = self.bot.wiki.get_site() | site = self.bot.wiki.get_site() | ||||
site._maxlag = None | |||||
user = site.get_user(name) | user = site.get_user(name) | ||||
try: | try: | ||||
@@ -40,7 +40,6 @@ class Command(BaseCommand): | |||||
name = ' '.join(data.args) | name = ' '.join(data.args) | ||||
site = self.bot.wiki.get_site() | site = self.bot.wiki.get_site() | ||||
site._maxlag = None | |||||
user = site.get_user(name) | user = site.get_user(name) | ||||
try: | try: | ||||
@@ -78,7 +78,7 @@ class Category(Page): | |||||
if not limit: | if not limit: | ||||
params["cmlimit"] = 50 # Default value | params["cmlimit"] = 50 # Default value | ||||
result = self._site._api_query(params) | |||||
result = self._site.api_query(**params) | |||||
members = result['query']['categorymembers'] | members = result['query']['categorymembers'] | ||||
return [member["title"] for member in members] | return [member["title"] for member in members] | ||||