summaryrefslogtreecommitdiff
path: root/sitemaps.py
diff options
context:
space:
mode:
Diffstat (limited to 'sitemaps.py')
-rw-r--r--sitemaps.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/sitemaps.py b/sitemaps.py
index 256f7101..25b48c68 100644
--- a/sitemaps.py
+++ b/sitemaps.py
@@ -3,7 +3,7 @@ from main.models import Package, News
class PackagesSitemap(Sitemap):
changefreq = "monthly"
- priority = "0.4"
+ priority = "0.5"
def items(self):
return Package.objects.select_related('arch', 'repo').all()
@@ -12,6 +12,17 @@ class PackagesSitemap(Sitemap):
def lastmod(self, obj):
return obj.last_update
+
+class PackageFilesSitemap(PackagesSitemap):
+ priority = "0.3"
+
+ def location(self, obj):
+ return PackagesSitemap.location(self, obj) + 'files/'
+
+ def lastmod(self, obj):
+ return obj.files_last_update
+
+
class NewsSitemap(Sitemap):
changefreq = "never"
priority = "0.7"