jenkins-bot has submitted this change and it was merged.

Change subject: Suppressed sleep message using noisysleep in user-config
......................................................................


Suppressed sleep message using noisysleep in user-config

The  "Waiting for 7 pages to be put. Estimated time remaining:
0:01:10 ***"  message will now appear only when "Estimated
time remaining" in more than noisysleep.

Bug: T124012
Change-Id: Ib0173c131d13ed00ea2b51cd9254d5fc1131b655
---
M pywikibot/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 70771dd..37f03bb 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -902,7 +902,7 @@
         page_put_queue.put((None, [], {}))
 
     num, sec = remaining()
-    if num > 0:
+    if num > 0 and sec.total_seconds() > config.noisysleep:
         output(color_format(
             '{lightblue}Waiting for {num} pages to be put. '
             'Estimated time remaining: {sec}{default}', num=num, sec=sec))

-- 
To view, visit https://gerrit.wikimedia.org/r/312727
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib0173c131d13ed00ea2b51cd9254d5fc1131b655
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Ayushjain19 <ayushjain...@gmail.com>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to