diff options
author | cedricbonhomme <devnull@localhost> | 2010-12-06 09:39:54 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-12-06 09:39:54 +0100 |
commit | 8469dd93803927dcca4a91c0a1df955dd11018e3 (patch) | |
tree | a91840cee8e763490b929125c3eadbd32a022f6b | |
parent | Minor improvements. Removed useless .encode('utf-8'). (diff) | |
download | newspipe-8469dd93803927dcca4a91c0a1df955dd11018e3.tar.gz newspipe-8469dd93803927dcca4a91c0a1df955dd11018e3.tar.bz2 newspipe-8469dd93803927dcca4a91c0a1df955dd11018e3.zip |
Minor bug fix in the export function.
-rwxr-xr-x | pyAggr3g470r.py | 4 |
1 files 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 |