diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-26 22:23:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-26 22:26:25 -0500 |
commit | bd2bc6a1c58723502ef6c2e9f49248908a161b13 (patch) | |
tree | 9b813c6fe259fe7fa6caf8c8652545c79432192f /feeds.py | |
parent | 9c701ebba1f2ef403aab95354a8ae4efdb7df74c (diff) |
Add last modified date to releases
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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): |