Revision: 6489 Author: russblau Date: 2009-03-05 10:36:04 +0000 (Thu, 05 Mar 2009)
Log Message: ----------- update datetime format in readyToEdit
Modified Paths: -------------- branches/rewrite/pywikibot/scripts/category_redirect.py
Modified: branches/rewrite/pywikibot/scripts/category_redirect.py =================================================================== --- branches/rewrite/pywikibot/scripts/category_redirect.py 2009-03-04 14:23:41 UTC (rev 6488) +++ branches/rewrite/pywikibot/scripts/category_redirect.py 2009-03-05 10:36:04 UTC (rev 6489) @@ -252,7 +252,7 @@
def readyToEdit(self, cat): """Return True if cat not edited during cooldown period, else False.""" - dateformat ="%Y%m%d%H%M%S" + dateformat ="%Y-%m-%dT%H:%M:%SZ" today = datetime.now() deadline = today + timedelta(days=-self.cooldown) if cat.editTime() is None: