commit 25738a80905ecd9cdd1d6bbece4986b08ec63e9c
parent ad25b4218e357166b6433b12c8c30a69218ed2e0
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 20 Sep 2008 20:34:36 +1000
better updated value for atom
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app.py b/app.py
@@ -137,7 +137,7 @@ class Constance(object):
title=None,
self_url='%s/' % self.environ['APP_URI'],
sorted_entries=sorted_entries[:self.config.getint('global', 'entries_in_feed')],
- feed_updated=sorted_entries[0].modified_date
+ feed_updated=max(e.modified_date for e in sorted_entries[:self.config.getint('global', 'entries_in_feed')])
).render('xml', encoding=self.encoding)
return (rendered, [('Content-Type', 'application/atom+xml')])
else: