diff backend/sqlalchemy/SqlAlchemyBackend.py @ 146:8ec20377bcb0

move getting the entries for a feed to the backend so that the couchdb backend can use a custom view for feed entries
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 25 Aug 2011 07:01:45 +0200
parents 71c5dc02ff87
children bca9341dc67f
line wrap: on
line diff
--- a/backend/sqlalchemy/SqlAlchemyBackend.py	Thu Aug 25 05:39:03 2011 +0200
+++ b/backend/sqlalchemy/SqlAlchemyBackend.py	Thu Aug 25 07:01:45 2011 +0200
@@ -75,6 +75,9 @@
         self.session.delete(feed)
         self.session.commit()
 
+    def entriesForFeed(self, feed, hideReadEntries):
+        return feed.entriesSortedByUpdateDate(hideReadEntries)
+
     def markFeedEntriesAsRead(self, entries):
         for entry in entries:
             entry.markRead()