Mercurial > hg > Feedworm
diff backend/sqlalchemy/SqlAlchemyBackend.py @ 126:089ee60b28fb backend
mark feed entries as read in the backend
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 22 Aug 2011 14:04:42 +0200 |
parents | 514e5d7dca98 |
children | 32a173cb081c |
line wrap: on
line diff
--- a/backend/sqlalchemy/SqlAlchemyBackend.py Mon Aug 22 11:22:45 2011 +0200 +++ b/backend/sqlalchemy/SqlAlchemyBackend.py Mon Aug 22 14:04:42 2011 +0200 @@ -56,6 +56,11 @@ self.session.delete(feed) self.session.commit() + def markFeedEntriesAsRead(self, entries): + for entry in entries: + entry.markRead() + self.session.commit() + def dispose(self): # save all uncommitted state, just in case self.session.commit()