[copr] master: Fix the enum keyword. (d7b287b)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Fri Jan 11 10:21:22 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit d7b287bb1f7e8af64de3961a74bed51a1b6b304f
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jan 11 10:56:16 2013 +0100

    Fix the enum keyword.


>---------------------------------------------------------------

 coprs_frontend/coprs/logic/coprs_logic.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coprs_frontend/coprs/logic/coprs_logic.py b/coprs_frontend/coprs/logic/coprs_logic.py
index 1b691a2..90fe800 100644
--- a/coprs_frontend/coprs/logic/coprs_logic.py
+++ b/coprs_frontend/coprs/logic/coprs_logic.py
@@ -35,7 +35,7 @@ class CoprsLogic(object):
         elif user_relation == 'allowed':
             aliased_user = db.aliased(models.User)
             query = query.join(models.CoprPermission, models.Copr.copr_permissions).\
-                          filter(models.CoprPermission.copr_builder == helpers.PermissionEnum.num('Approved')).\
+                          filter(models.CoprPermission.copr_builder == helpers.PermissionEnum.num('approved')).\
                           join(aliased_user, models.CoprPermission.user).\
                           filter(aliased_user.openid_name == models.User.openidize_name(username))
         return query



More information about the copr-devel mailing list