diff options
author | luxagraf <sng@luxagraf.net> | 2019-02-22 20:44:24 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-02-22 20:44:24 -0600 |
commit | 5813a02145c8f95c04a2fedfd9555b402d443e6b (patch) | |
tree | c41dfa15aa4d4e50b928c514526216f84c9921cc /app/essays | |
parent | 24e0c4ee694c694db2a6d038e5b509aed8e66b13 (diff) |
added essays and books to sitemap, moved books to read
Diffstat (limited to 'app/essays')
-rw-r--r-- | app/essays/models.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/essays/models.py b/app/essays/models.py index 6160165..32ed053 100644 --- a/app/essays/models.py +++ b/app/essays/models.py @@ -79,13 +79,11 @@ class Essay(models.Model): class EssaySitemap(Sitemap): changefreq = "never" - priority = 0.7 + priority = 1.0 protocol = "https" def items(self): - return list(chain( - Essay.objects.all(), - )) + return Essay.objects.filter(status=1) def lastmod(self, obj): return obj.pub_date |