4 Commits

Author SHA1 Message Date
0c135ef1bb Describe version test-v5 2017-09-23 23:50:42 +02:00
8b8221cfcd Merge branch 'fs#152-respect-always-flag' into develop 2017-09-23 23:49:59 +02:00
bdccc8417c 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)
2017-09-23 23:49:41 +02:00
a70835c58a Merge back branch 'test-v4' into develop 2017-09-23 23:48:25 +02:00
2 changed files with 8 additions and 1 deletions

View File

@@ -19,6 +19,11 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
Versions Versions
-------- --------
* test-v5
- Feature _markpages_ working in full-automatic mode with _always_-flag
python red.py -task:markpages -family:wikipedia -always
* test-v4 * test-v4
- Feature _markpages_ working in semi-automatic mode using command - Feature _markpages_ working in semi-automatic mode using command

View File

@@ -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):
""" """