Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 7dee8dc63b3785919688a81487e71bf3315ff8d8 Author: Bohuslav Kabrda bkabrda@redhat.com Date: Thu Feb 21 14:04:55 2013 +0100
Sort the mock_chroots on copr overview page correctly
coprs_frontend/coprs/logic/coprs_logic.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/logic/coprs_logic.py b/coprs_frontend/coprs/logic/coprs_logic.py index 42fa24f..ac0219a 100644 --- a/coprs_frontend/coprs/logic/coprs_logic.py +++ b/coprs_frontend/coprs/logic/coprs_logic.py @@ -26,7 +26,10 @@ class CoprsLogic(object): order_by(models.Build.submitted_on.desc()) if with_mock_chroots: query = query.outerjoin(*models.Copr.mock_chroots.attr).\ - options(db.contains_eager(*models.Copr.mock_chroots.attr)) + options(db.contains_eager(*models.Copr.mock_chroots.attr)).\ + order_by(models.MockChroot.os_release.asc()).\ + order_by(models.MockChroot.os_version.asc()).\ + order_by(models.MockChroot.arch.asc())
return query
copr-devel@lists.fedorahosted.org