Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/291584
Change subject: [bugfix] getVersionHistory has only 4 items
......................................................................
[bugfix] getVersionHistory has only 4 items
- Every version history tuple has 4 items only in core
whereas compat has 6 items.
Change-Id: I7c2225cab1307eecfbd84a86725142f45f5caa6d
---
M imagereview.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/xqbot
refs/changes/84/291584/1
diff --git a/imagereview.py b/imagereview.py
index 8e2d67e..5469b12 100644
--- a/imagereview.py
+++ b/imagereview.py
@@ -809,7 +809,7 @@
found = False
vh = image.getVersionHistory()
# Search for last bot action
- for oldid, time, username, summary, size, tags in vh:
+ for oldid, time, username, summary in vh:
if username in [u'Xqbot', u'BLUbot']:
imageID = oldid
break
--
To view, visit https://gerrit.wikimedia.org/r/291584
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c2225cab1307eecfbd84a86725142f45f5caa6d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/xqbot
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits