jenkins-bot has submitted this change and it was merged. Change subject: Show the number of old threads that are pending for archiving ......................................................................
Show the number of old threads that are pending for archiving Change-Id: I88a69df5a5841c3725edb66c15cc855c45cd8bee --- M scripts/archivebot.py 1 file changed, 4 insertions(+), 3 deletions(-) Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified diff --git a/scripts/archivebot.py b/scripts/archivebot.py index c970c5f..23a5a30 100644 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -426,11 +426,12 @@ if not self.Page.botMayEdit(): return whys = self.analyzePage() - if self.archivedThreads < int(self.get('minthreadstoarchive', 2)): + mintoarchive = int(self.get('minthreadstoarchive', 2)) + if self.archivedThreads < mintoarchive: # We might not want to archive a measly few threads # (lowers edit frequency) - pywikibot.output(u'There are only %d Threads. Skipping' - % self.archivedThreads) + pywikibot.output(u'Only %d (< %d) threads are old enough. Skipping' + % (self.archivedThreads, mintoarchive)) return if whys: pywikibot.output(u'Archiving %d thread(s).' % self.archivedThreads) -- To view, visit https://gerrit.wikimedia.org/r/122102 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I88a69df5a5841c3725edb66c15cc855c45cd8bee Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Whym <w...@whym.org> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits