diff --git a/tasks/afc_statistics.py b/tasks/afc_statistics.py index e06f580..026a203 100644 --- a/tasks/afc_statistics.py +++ b/tasks/afc_statistics.py @@ -54,6 +54,7 @@ class AFCStatistics(Task): def setup(self): self.cfg = cfg = self.config.tasks.get(self.name, {}) + self.site = self.bot.wiki.get_site() # Set some wiki-related attributes: self.pagename = cfg.get("page", "Template:AFC statistics")