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)
This commit is contained in:
@@ -73,7 +73,9 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
|||||||
self.build_generator()
|
self.build_generator()
|
||||||
|
|
||||||
# Run super class init with builded 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):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user