summaryrefslogtreecommitdiff
path: root/wikibot
diff options
context:
space:
mode:
authorGravatar klea2026-01-11 20:13:06 +0000
committerGravatar klea2026-01-11 20:13:06 +0000
commiteeb42a4b1e42b8eab9222d7752fa7c1cdf594cd1 (patch)
tree7ce35639f1d0e83ef28a8c8ada57c6078a0a79a3 /wikibot
parentwikibot/discourse: readd but excludes and dryMode (diff)
signature
wikibot(discourse): don't annoy humans
Diffstat (limited to 'wikibot')
-rw-r--r--wikibot/discourse.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wikibot/discourse.py b/wikibot/discourse.py
index c8ef32a..a5aabad 100644
--- a/wikibot/discourse.py
+++ b/wikibot/discourse.py
@@ -59,8 +59,10 @@ def handle_page(site, page):
maybeUpdate(site, page, outputStr)
def maybeUpdate(site, page, newContent, comment="Reordered websites"):
+ pageMirror = 'User:KleaBot/mirror/' + page.title(with_ns=True).replace(':','/')
pageTitle = page.title(as_link=True)
pageFilename = page.title(as_filename=True)
+ page = pywikibot.Page(site, pageMirror)
dryMode = False
outputDir = "./wikitexts/"