From 8469dd93803927dcca4a91c0a1df955dd11018e3 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Mon, 6 Dec 2010 09:39:54 +0100 Subject: Minor bug fix in the export function. --- pyAggr3g470r.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 8cdde3a2..b8be4c98 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -1041,7 +1041,7 @@ class Root: """ % (time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()), \ time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime())) - for rss_feed_id in self.feeds.keys(): + for feed in self.feeds.values(): if export_method != "export_RSS": folder = utils.path + "/var/export/" + \ utils.normalize_filename(feed.feed_title.strip().replace(':', '').lower()) @@ -1050,7 +1050,7 @@ class Root: except OSError: return self.error_page(utils.path + "var/export/"+" already exists.\nYou should delete this folder.") - for article in self.articles[rss_feed_id]: + for article in feed.articles.values(): name = article.article_date.strip().replace(' ', '_') # Export all articles in HTML format -- cgit