jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1330589?usp=email )
Change subject: checkimages: Limit talk page revision retrieval
......................................................................
checkimages: Limit talk page revision retrieval
Only the newest revision and the existence of a second revision are used.
Request two records instead of ten.
Change-Id: I87d61ab28609acfe4bf575d85113b15788d2e640
---
M scripts/checkimages.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 45c1730..01a7bef 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -676,7 +676,7 @@
# advise...
try:
curr_text = self.talk_page.get()
- history = list(self.talk_page.revisions(total=10))
+ history = list(self.talk_page.revisions(total=2))
latest_user = history[0]['user']
pywikibot.info(
'The latest user that has written something is: '
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1330589?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I87d61ab28609acfe4bf575d85113b15788d2e640
Gerrit-Change-Number: 1330589
Gerrit-PatchSet: 2
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]