From f4296d8410bc504381fbe99deeeb0674e5b5dfdd Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Tue, 25 Sep 2018 16:59:50 +0200 Subject: [PATCH] Set upload warnings which can be ignored We always upload existing images, so do not complain about this. For testing purposes, also duplicates are normal --- euroexange/euroexange.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/euroexange/euroexange.py b/euroexange/euroexange.py index 5a32ac3..e710074 100644 --- a/euroexange/euroexange.py +++ b/euroexange/euroexange.py @@ -331,9 +331,9 @@ class EuroExangeBot( pywikibot.bot.BaseBot ): filename = job.image filepath = os.path.join(self.wdir, job.image) - keepFilename=True #set to True to skip double-checking/editing destination filename - verifyDescription=True #set to False to skip double-checking/editing description => change to bot-mode - ignoreWarning=False #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked + keepFilename = True #set to True to skip double-checking/editing destination filename + verifyDescription = True #set to False to skip double-checking/editing description => change to bot-mode + ignoreWarning = [ "exists", "duplicate", ] #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked targetSite = pywikibot.Site() bot = pywikibot.specialbots.UploadRobot(