[copr] master: Fix retrieving coprs in a corner case where they don't have any chroots (eaa91d0)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Wed Jan 23 15:16:52 UTC 2013


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

On branch  : master

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

commit eaa91d0d1ebd62d9a0d7bd712eb04fa342711789
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Jan 23 15:34:57 2013 +0100

    Fix retrieving coprs in a corner case where they don't have any chroots


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

 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 4f93d35..0401a3b 100644
--- a/coprs_frontend/coprs/logic/coprs_logic.py
+++ b/coprs_frontend/coprs/logic/coprs_logic.py
@@ -56,7 +56,7 @@ class CoprsLogic(object):
                           join(aliased_user, models.CoprPermission.user).\
                           filter(aliased_user.openid_name == models.User.openidize_name(username))
         if with_mock_chroots:
-            query = query.join(*models.Copr.mock_chroots.attr).\
+            query = query.outerjoin(*models.Copr.mock_chroots.attr).\
                           options(db.contains_eager(*models.Copr.mock_chroots.attr))
         return query
 



More information about the copr-devel mailing list