diff --git a/camelot/model/batch_job.py b/camelot/model/batch_job.py index b67e0401..56719269 100644 --- a/camelot/model/batch_job.py +++ b/camelot/model/batch_job.py @@ -83,7 +83,7 @@ def model_run( self, model_context ): @documented_entity() class BatchJob( Entity ): """Information the batch job that is planned, running or has run""" - using_options( tablename = 'batch_job', order_by=['-date'] ) + using_options( tablename = 'batch_job', order_by=['date desc'] ) date = Field( sqlalchemy.types.DateTime, required=True, default=datetime.datetime.now ) host = Field( sqlalchemy.types.Unicode(256), required=True, default=hostname ) type = ManyToOne( 'BatchJobType', required=True, ondelete = 'restrict', onupdate = 'cascade' )