From bdccc8417ce943a6f830de8b0c137ce5836fe367 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sat, 2 Sep 2017 15:53:51 +0200 Subject: [PATCH] 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) --- bots/markpages.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots/markpages.py b/bots/markpages.py index d8e1545..5dcf527 100644 --- a/bots/markpages.py +++ b/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): """