summaryrefslogtreecommitdiffstats
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-26 22:23:56 -0500
committerDan McGee <dan@archlinux.org>2014-10-26 22:26:25 -0500
commitbd2bc6a1c58723502ef6c2e9f49248908a161b13 (patch)
tree9b813c6fe259fe7fa6caf8c8652545c79432192f /feeds.py
parent9c701ebba1f2ef403aab95354a8ae4efdb7df74c (diff)
downloadarchweb-bd2bc6a1c58723502ef6c2e9f49248908a161b13.tar.gz
archweb-bd2bc6a1c58723502ef6c2e9f49248908a161b13.zip
Add last modified date to releases
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/feeds.py b/feeds.py
index 7247e95c..0f7fa5d7 100644
--- a/feeds.py
+++ b/feeds.py
@@ -159,6 +159,9 @@ class NewsFeed(Feed):
def item_pubdate(self, item):
return item.postdate
+ def item_updateddate(self, item):
+ return item.last_modified
+
def item_author_name(self, item):
return item.author.get_full_name()
@@ -191,6 +194,9 @@ class ReleaseFeed(Feed):
def item_pubdate(self, item):
return datetime.combine(item.release_date, time()).replace(tzinfo=utc)
+ def item_updateddate(self, item):
+ return item.last_modified
+
item_guid_is_permalink = False
def item_guid(self, item):