Fix deprecated calls to UploadRobot
This commit is contained in:
@@ -330,7 +330,7 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
|
|||||||
comment = type(self).upload_comment
|
comment = type(self).upload_comment
|
||||||
|
|
||||||
filename = job.image
|
filename = job.image
|
||||||
filepath = os.path.join(self.wdir, job.image)
|
filepath = [ os.path.join(self.wdir, job.image) ]
|
||||||
keepFilename = True #set to True to skip double-checking/editing destination filename
|
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
|
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
|
ignoreWarning = [ "exists", "duplicate", ] #set to True to skip warnings, Upload even if another file would be overwritten or another mistake would be risked
|
||||||
@@ -346,7 +346,7 @@ class EuroExangeBot( pywikibot.bot.BaseBot ):
|
|||||||
targetSite = targetSite
|
targetSite = targetSite
|
||||||
)
|
)
|
||||||
|
|
||||||
bot.upload_image(debug=True)
|
bot.run()
|
||||||
|
|
||||||
def main(*args):
|
def main(*args):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user