jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] add the image name before comparing the content
......................................................................
[bugfix] add the image name before comparing the content
Bug: T102467
Change-Id: I0aeeaff7194960dd0b0d59e84c1afb4f9dd29b0c
---
M scripts/checkimages.py
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index fdddb9b..8b6eef8 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1086,6 +1086,10 @@
if not rep_text:
rep_text = self.rep_text
+ if addings:
+ # Adding the name of the image in the report if not done already
+ rep_text = rep_text % image_to_report
+
another_page = pywikibot.Page(self.site, rep_page)
try:
text_get = another_page.get()
@@ -1120,9 +1124,6 @@
reported = False
else:
# Adding the log
- if addings:
- # Adding the name of the image in the report if not done already
- rep_text = rep_text % image_to_report
another_page.put(text_get + rep_text, summary=com, force=True,
minorEdit=False)
pywikibot.output(u"...Reported...")
--
To view, visit
https://gerrit.wikimedia.org/r/248686
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0aeeaff7194960dd0b0d59e84c1afb4f9dd29b0c
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>