Browse Source

Make sure AFCStatistics has a reference to the site at setup time.

pull/15/head
Ben Kurtovic 11 years ago
parent
commit
9ada6e52bb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tasks/afc_statistics.py

+ 1
- 0
tasks/afc_statistics.py View File

@@ -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")


Loading…
Cancel
Save