Skip to content

Commit

Permalink
Fix #57 start page will overwritten, need not check parent, just repl…
Browse files Browse the repository at this point in the history
…ace 'Wiki' with 'home'
  • Loading branch information
hkato authored and scambra committed Aug 15, 2020
1 parent 47a46ec commit 510135c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redmine_gitlab_migrator/wiki.py
Expand Up @@ -133,9 +133,9 @@ def __init__(self, local_repo_path):
self.textile_converter = TextileConverter()

def convert(self, redmine_page):
title = (self.textile_converter.normalize(redmine_page["title"])
if 'parent' in redmine_page
else 'home')
title = self.textile_converter.normalize(redmine_page["title"])
if (title == 'Wiki'):
title = 'home'
print("Converting {} ({} version {})".format(title, redmine_page["title"], redmine_page["version"]))

text = redmine_page.get('text', "")
Expand Down

0 comments on commit 510135c

Please sign in to comment.