From 56c2582fe9eaca4e1a7515269869cc0f5a041ca8 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Fri, 3 Sep 2010 13:53:02 +0200 Subject: Improvements of history pages. --- pyAggr3g470r.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index b9b8f9c1..a99d16ed 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -598,6 +598,7 @@ class Root: timeline = Counter() for rss_feed_id in self.feeds.keys(): + new_feed_section = True for article in self.articles[rss_feed_id]: if querystring == "all": @@ -623,6 +624,18 @@ class Root: else: like = "" + if new_feed_section is True: + new_feed_section = False + html += """

%s +

\n""" % \ + (rss_feed_id, \ + self.feeds[rss_feed_id][5].encode('utf-8'), \ + self.feeds[rss_feed_id][3].encode('utf-8'), \ + self.feeds[rss_feed_id][4].encode('utf-8'), \ + self.feeds[rss_feed_id][2].encode('utf-8')) + html += article[1].encode('utf-8') + \ " - " + not_read_begin + \ """%s""" % \ -- cgit