Mercurial > public > sg101
changeset 389:3fa61786abf1
Fixing #190; calendar admin always reports 1 event being approved.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 20 Mar 2011 20:23:29 +0000 |
parents | c3231af55778 |
children | e0523e17ea43 |
files | gpp/gcalendar/admin.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/gcalendar/admin.py Sat Mar 19 05:03:51 2011 +0000 +++ b/gpp/gcalendar/admin.py Sun Mar 20 20:23:29 2011 +0000 @@ -41,8 +41,8 @@ Ratchets the selected events forward to the approved state. Ignores events that aren't in the proper state. """ + count = 0 for event in qs: - count = 0 if event.status in self.pending_states: event.status = self.pending_states[event.status] event.save()