This website works better with JavaScript.
Home
Help
Sign In
ben
/
earwigbot-plugins
mirror of
https://github.com/earwig/earwigbot-plugins
Watch
1
Star
1
Fork
0
Code
Releases
1
Activity
Browse Source
Make sure AFCStatistics has a reference to the site at setup time.
pull/15/head
Ben Kurtovic
11 years ago
parent
3091b38a62
commit
9ada6e52bb
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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")
Write
Preview
Loading…
Cancel
Save