Missed a couple of order_by's in the job reports.

This commit is contained in:
Greg Von Kuster
2008-07-03 12:55:55 +00:00
parent 4c520e8ce2
commit d02838ce8b
@@ -64,7 +64,8 @@ class Jobs( BaseController ):
galaxy.model.Job.table.c.create_time < end_date ),
from_obj = [ sa.outerjoin( galaxy.model.Job.table,
galaxy.model.History.table ).outerjoin( galaxy.model.User.table ) ],
group_by = [ 'date' ] )
group_by = [ 'date' ],
order_by = [ sa.desc( 'date' ) ] )
jobs = []
for row in q.execute():
jobs.append( ( row.date.strftime( "%A" ),
@@ -95,7 +96,8 @@ class Jobs( BaseController ):
galaxy.model.Job.table.c.create_time < end_date ),
from_obj = [ sa.outerjoin( galaxy.model.Job.table,
galaxy.model.History.table ).outerjoin( galaxy.model.User.table ) ],
group_by = [ 'date' ] )
group_by = [ 'date' ],
order_by = [ sa.desc( 'date' ) ] )
jobs = []
for row in q.execute():
jobs.append( ( row.date.strftime( "%A" ),