bodhi/model.py | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit c47555692c8c56cc03e816dcf3845047c1da5052 Author: Luke Macken lmacken@redhat.com Date: Wed Jun 30 20:11:44 2010 -0400
Fix PackageUpdate.num_admin_approvals to actually track approvals
diff --git a/bodhi/model.py b/bodhi/model.py index c98570a..4a284b8 100644 --- a/bodhi/model.py +++ b/bodhi/model.py @@ -898,6 +898,8 @@ class PackageUpdate(SQLObject): """ Return the number of Releng/QA approvals of this update """ approvals = 0 for comment in self.comments: + if comment.karma != 1: + continue # FIXME: # We need to actually store the groups or approvals sanely. # Hack, to get this working for F13 w/o changing the DB