RedFamWorker: Improve talkpagetoggling
Do not toggle to main page if we have already a talkpage and vice versa Issue #69 (#69)
This commit is contained in:
@@ -602,7 +602,8 @@ class RedFamWorker( RedFam ):
|
||||
pass
|
||||
|
||||
# Toggle talkpage
|
||||
if talkpages:
|
||||
if talkpages and not page.isTalkPage() or\
|
||||
not talkpages and page.isTalkPage():
|
||||
page = page.toggleTalkPage()
|
||||
|
||||
# Add reference to redfam to pages
|
||||
|
||||
Reference in New Issue
Block a user