jenkins-bot has submitted this change and it was merged.
Change subject: (bugfix) Page.editTime() is already a pywikibot.Timestamp
......................................................................
(bugfix) Page.editTime() is already a pywikibot.Timestamp
Change-Id: I6778cb6879cd8771b10b12215c0dcfe3fd21d27b
---
M scripts/clean_sandbox.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
Steinsplitter: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/scripts/clean_sandbox.py b/scripts/clean_sandbox.py
index 1efc9b4..d284f4a 100755
--- a/scripts/clean_sandbox.py
+++ b/scripts/clean_sandbox.py
@@ -214,8 +214,8 @@
pywikibot.output(u'Standard content was changed, '
u'sandbox cleaned.')
else:
- edit_delta = datetime.datetime.utcnow() - \
-
pywikibot.Timestamp.fromISOformat(sandboxPage.editTime())
+ edit_delta = (datetime.datetime.utcnow() -
+ sandboxPage.editTime())
delta = self.getOption('delay_td') - edit_delta
# Is the last edit more than 'delay' minutes ago?
if delta <= datetime.timedelta(0):
--
To view, visit https://gerrit.wikimedia.org/r/129972
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6778cb6879cd8771b10b12215c0dcfe3fd21d27b
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: DrTrigon <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Pyfisch <[email protected]>
Gerrit-Reviewer: Russell Blau <[email protected]>
Gerrit-Reviewer: Steinsplitter <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits