Commits

David Chambers committed de1b2b0

circumvent performance problem by ignoring comments when generating sitemaps

Comments (0)

Files changed (1)

         return 'yearly'
 
     def lastmod(self, document):
-        lastmod = datetime.fromtimestamp(document.lastmod)
-        if document.comments():
-            lastmod = max(lastmod, document.comments()[-1].created_at)
-        return lastmod
+        return datetime.utcfromtimestamp(document.lastmod)
 
     def location(self, document):
         return document.identifier()