On 7/2/13 11:50 AM, Pat Riehecky wrote:
Hello,I'm wondering if there is an easy way to change the way koji shows the most recent builds. Right now it sorts by build_id and I would rather sort by completion_time. Is there an easier way of doing this than: $ git diff diff --git a/www/kojiweb/index.py b/www/kojiweb/index.py index 0505c9c..a107b20 100644 --- a/www/kojiweb/index.py +++ b/www/kojiweb/index.py @@ -272,7 +272,7 @@ def index(environ, packageOrder='package_name', packageStart=None): user = environ['koji.currentUser'] - values['builds'] = server.listBuilds(userID=(user and user['id'] or None), queryOpts={'order': '-build_id', 'limit': 10}) + values['builds'] = server.listBuilds(userID=(user and user['id'] or None), queryOpts={'order': '-completion_time', 'limit': 10}) taskOpts = {'parent': None, 'decode': True} if user:
It used to do exactly that, but we changed it to order by the build_id (primary key) because it reduced load on the database.
-- buildsys mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/buildsys
