diff backend/sqlalchemy/FeedUpdater.py @ 160:86f828096aaf

Do not fetch and parse the feed twice when creating a new one. Pass the parsed info into the update method instead to reuse.
author dirk
date Mon, 29 Aug 2011 03:07:50 +0200
parents 74217db92993
children a3c945ce434c
line wrap: on
line diff
--- a/backend/sqlalchemy/FeedUpdater.py	Mon Aug 29 02:41:24 2011 +0200
+++ b/backend/sqlalchemy/FeedUpdater.py	Mon Aug 29 03:07:50 2011 +0200
@@ -30,7 +30,7 @@
     newFeed = Feed(title, url)
     session.add(newFeed)
 
-    FeedUpdater(session, newFeed).update()
+    FeedUpdater(session, newFeed).update(result)
 
 
 class FeedUpdater(AbstractFeedUpdater):