diff --git a/bot/tasks/afc_statistics.py b/bot/tasks/afc_statistics.py index a703e37..04b55c5 100644 --- a/bot/tasks/afc_statistics.py +++ b/bot/tasks/afc_statistics.py @@ -22,7 +22,7 @@ class Task(BaseTask): number = 2 def __init__(self): - self.cfg = config.tasks.get(self.name, {}) + self.cfg = cfg = config.tasks.get(self.name, {}) # Set some wiki-related attributes: self.pagename = cfg.get("page", "Template:AFC statistics")