6 Commits
Author SHA1 Message Date
golderweb 108b7aa331 Describe version test-v6 2017-10-28 18:46:30 +02:00
golderweb a3adf31b89 Merge branch 'fs#86-activate-status-api' into develop 2017-10-28 18:44:42 +02:00
golderweb 614f288bb9 Activate jogobot status api for onwiki disabling
Related Task: [FS#86](https://fs.golderweb.de/index.php?do=details&task_id=86)
2017-10-28 18:44:05 +02:00
golderweb c450a045bf Merge branch 'fs#159-space-before-anchor' into develop 2017-10-28 18:43:13 +02:00
golderweb 84802cf521 Remove leading or trailing spaces in articles
Some articles contain spaces between title and anchor part which will
be stripped now

Related Task: [FS#159](https://fs.golderweb.de/index.php?do=details&task_id=159)
2017-10-28 18:41:06 +02:00
golderweb 5f6c443ba8 Merge branch 'test-v5' back into develop 2017-10-28 18:17:01 +02:00
3 changed files with 10 additions and 2 deletions
+4
View File
@@ -19,6 +19,10 @@ 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
+4
View File
@@ -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(" ", "_")
+2 -2
View File
@@ -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(