From 9ada6e52bb4c56bf856fcc399923144900f0c57d Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 19 Oct 2013 18:30:23 -0400 Subject: [PATCH] Make sure AFCStatistics has a reference to the site at setup time. --- tasks/afc_statistics.py | 1 + 1 file changed, 1 insertion(+) 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")