Browse Source

Output log each parsed page and revision

To improve quality of log

[https://fs.golderweb.de/index.php?do=details&task_id=67|FS#67]
develop
Jonathan Golder 8 years ago
parent
commit
8948fcc78d
  1. 6
      countrylist.py

6
countrylist.py

@ -34,6 +34,8 @@ from isoweek import Week
import pywikibot import pywikibot
import mwparserfromhell as mwparser import mwparserfromhell as mwparser
import jogobot
class CountryList(): class CountryList():
""" """
@ -131,6 +133,10 @@ class CountryList():
# For easy detecting wether we have parsed self # For easy detecting wether we have parsed self
self.parsed = True self.parsed = True
# Log parsed page
jogobot.output( "Parsed revision {revid} of page [[{title}]]".format(
revid=self.revid, title=self.page.title() ) )
def detect_belgian( self ): def detect_belgian( self ):
""" """
Detect wether current entry is on of the belgian (Belgien/Wallonien) Detect wether current entry is on of the belgian (Belgien/Wallonien)

Loading…
Cancel
Save