summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2015-06-05 08:32:52 -0500
committerDan McGee <dan@archlinux.org>2015-06-05 08:32:52 -0500
commit68d85d0526ee605bb661de40387d0dde7f015953 (patch)
treec28b070158f0cb4282d2840171a5fc90498b8f29
parentff1359050f686437b6078e2b12948674d2f7388f (diff)
Revert "Force minimum last modified date for package files pages in sitemap"
This reverts commit 790def2f4db2afec150bab8dc842f6068fb751db. This has been out there long enough that the fallout should be fixed. Go back to just using the default date. Signed-off-by: Dan McGee <dan@archlinux.org>
-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):