summaryrefslogtreecommitdiff
path: root/sitemaps.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-05 23:59:03 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-05 23:59:03 -0600
commitd4731a373ca665d4547eb0e89cdf270d41c44243 (patch)
tree41dbfb57e5f6745ad6ac3acd5de8c4d9788c950c /sitemaps.py
parentc8d979b8a48805d162ab46cdc4e493da0aa1595c (diff)
parent803ba89841468bcf088ea79ea981a849ca159682 (diff)
Merge branch 'archweb' into archweb-generic
Diffstat (limited to 'sitemaps.py')
-rw-r--r--sitemaps.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/sitemaps.py b/sitemaps.py
index 7746ecab..03ad9254 100644
--- a/sitemaps.py
+++ b/sitemaps.py
@@ -37,17 +37,12 @@ class PackagesSitemap(Sitemap):
class PackageFilesSitemap(PackagesSitemap):
changefreq = "weekly"
priority = "0.1"
- # we fixed a bug on the package files page on this day, force modification
- lastmod_min = datetime(2015, 4, 12).replace(tzinfo=utc)
def location(self, obj):
return PackagesSitemap.location(self, obj) + 'files/'
def lastmod(self, obj):
- update = obj.files_last_update
- if update is None:
- return None
- return max(update, self.lastmod_min)
+ return obj.files_last_update
class PackageGroupsSitemap(Sitemap):