Sfoglia il codice sorgente

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

pull/15/head
Ben Kurtovic 13 anni fa
parent
commit
9ada6e52bb
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      tasks/afc_statistics.py

+ 1
- 0
tasks/afc_statistics.py Vedi File

@@ -54,6 +54,7 @@ class AFCStatistics(Task):


def setup(self): def setup(self):
self.cfg = cfg = self.config.tasks.get(self.name, {}) self.cfg = cfg = self.config.tasks.get(self.name, {})
self.site = self.bot.wiki.get_site()


# Set some wiki-related attributes: # Set some wiki-related attributes:
self.pagename = cfg.get("page", "Template:AFC statistics") self.pagename = cfg.get("page", "Template:AFC statistics")


Caricamento…
Annulla
Salva