Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/231009
Change subject: Set start timestamp while instantiating the bot
......................................................................
Set start timestamp while instantiating the bot
Change-Id: Ib06598fa4f65837b2719aa00e15f0750dbf0a58a
---
M afd-notice.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/xqbot
refs/changes/09/231009/1
diff --git a/afd-notice.py b/afd-notice.py
index 60cc05b..bb23c04 100644
--- a/afd-notice.py
+++ b/afd-notice.py
@@ -49,6 +49,7 @@
self.ignoreUser = set()
self.always = self.getOption('always')
self.init = self.getOption('init')
+ self._start_ts = pywikibot.Timestamp.now()
def moved_page(self, source):
page = pywikibot.Page(pywikibot.Link(source))
@@ -62,7 +63,6 @@
def run(self):
"""Run the bot."""
- self._start_ts = pywikibot.Timestamp.now()
if self.init:
oldlist = set()
else:
--
To view, visit https://gerrit.wikimedia.org/r/231009
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib06598fa4f65837b2719aa00e15f0750dbf0a58a
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