Browse Source

Set always in Pywikibot.Basebot

If cmdline param -always is set, set the related option in
Pywikibot.Basebot Object for automatic edits with out further requests

Related Task: [FS#152](https://fs.golderweb.de/index.php?do=details&task_id=152)
develop
Jonathan Golder 7 years ago
parent
commit
bdccc8417c
  1. 4
      bots/markpages.py

4
bots/markpages.py

@ -73,7 +73,9 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
self.build_generator()
# Run super class init with builded generator
super( MarkPagesBot, self ).__init__(generator=self.gen)
super( MarkPagesBot, self ).__init__(
generator=self.gen,
always=True if "always" in kwargs else False )
def run(self):
"""

Loading…
Cancel
Save