Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 108b7aa331 | |||
| a3adf31b89 | |||
| 614f288bb9 | |||
| c450a045bf | |||
| 84802cf521 | |||
| 5f6c443ba8 | |||
| 0c135ef1bb | |||
| 8b8221cfcd | |||
| bdccc8417c | |||
| a70835c58a |
@@ -19,6 +19,15 @@ Those can be installed using pip and the _requirements.txt_ file provided with t
|
||||
Versions
|
||||
--------
|
||||
|
||||
* test-v6
|
||||
- jogobot status API enabled (Bot can be disabled onwiki)
|
||||
- Fixed Problem with space between article title and anchor
|
||||
|
||||
* test-v5
|
||||
- Feature _markpages_ working in full-automatic mode with _always_-flag
|
||||
|
||||
python red.py -task:markpages -family:wikipedia -always
|
||||
|
||||
* test-v4
|
||||
|
||||
- Feature _markpages_ working in semi-automatic mode using command
|
||||
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
@@ -297,6 +297,10 @@ class RedFamParser( RedFam ):
|
||||
article[0] = article[0].replace("_", " ")
|
||||
|
||||
if len(article) > 1:
|
||||
# Strip both parts to prevent leading/trailing spaces
|
||||
article[0] = article[0].strip()
|
||||
article[1] = article[1].strip()
|
||||
|
||||
# other way round, replace spaces with underscores in anchors
|
||||
article[1] = article[1].replace(" ", "_")
|
||||
|
||||
|
||||
4
red.py
4
red.py
@@ -124,8 +124,8 @@ def main(*args):
|
||||
|
||||
# Disabled until [FS#86] is done
|
||||
# Before run, we need to check wether we are currently active or not
|
||||
# if not jogobot.bot.active( task_slug ):
|
||||
# return
|
||||
if not jogobot.bot.active( task_slug ):
|
||||
return
|
||||
|
||||
# Parse local Args to get information about subtask
|
||||
( subtask, genFactory, subtask_args ) = jogobot.bot.parse_local_args(
|
||||
|
||||
Reference in New Issue
Block a user