Browse Source

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
develop
Jonathan Golder 4 years ago
parent
commit
f4296d8410
  1. 6
      euroexange/euroexange.py

6
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(

Loading…
Cancel
Save