Mercurial > hg > Feedworm
diff backend/couchdb/FeedEntry.py @ 183:ac1de0a467fd
clean up
author | dirk |
---|---|
date | Sun, 11 Sep 2011 06:51:14 +0200 |
parents | 1ab48428e2f9 |
children | e5d492595bdb |
line wrap: on
line diff
--- a/backend/couchdb/FeedEntry.py Sat Sep 10 09:15:25 2011 +0200 +++ b/backend/couchdb/FeedEntry.py Sun Sep 11 06:51:14 2011 +0200 @@ -32,6 +32,11 @@ def compareByUpdateDate(first, second): return cmp(first, second) + @staticmethod + def entriesForFeed(feed, database): + viewResults = FeedEntry.view(database, CouchDb.feedEntriesByFeed(), key=feed.id) + return list(viewResults) + def markRead(self, database): self.read = True self.store(database)