# HG changeset patch # User Brian Neal # Date 1300652609 0 # Node ID 3fa61786abf191433620d1fee2d62879bef308d2 # Parent c3231af55778651d6bd3f1e4001898053c6d5e51 Fixing #190; calendar admin always reports 1 event being approved. diff -r c3231af55778 -r 3fa61786abf1 gpp/gcalendar/admin.py --- 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()