Mercurial > kallithea
comparison rhodecode/model/notification.py @ 2217:76947224bf27 codereview
Implemented initial code-review status of changesets
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 01 May 2012 22:24:41 +0200 |
parents | a27e4d44237e |
children | e5c0f201ca0b |
comparison
equal
deleted
inserted
replaced
2216:a2987fa580d9 | 2217:76947224bf27 |
---|---|
140 return user.notifications | 140 return user.notifications |
141 | 141 |
142 def mark_all_read_for_user(self, user): | 142 def mark_all_read_for_user(self, user): |
143 user = self.__get_user(user) | 143 user = self.__get_user(user) |
144 UserNotification.query()\ | 144 UserNotification.query()\ |
145 .filter(UserNotification.read==False)\ | 145 .filter(UserNotification.read == False)\ |
146 .update({'read': True}) | 146 .update({'read': True}) |
147 | 147 |
148 def get_unread_cnt_for_user(self, user): | 148 def get_unread_cnt_for_user(self, user): |
149 user = self.__get_user(user) | 149 user = self.__get_user(user) |
150 return UserNotification.query()\ | 150 return UserNotification.query()\ |