File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ def history():
490
490
if os .path .isfile (cfg ['DBFILE' ]):
491
491
# after roughly 175 entries firefox readermode will break
492
492
# jobs = Job.query.filter_by().limit(175).all()
493
- jobs = Job .query .order_by ().paginate (page , 100 , False )
493
+ jobs = Job .query .order_by (Job . start_time . desc () ).paginate (page , 100 , False )
494
494
else :
495
495
app .logger .error ('ERROR: /history database file doesnt exist' )
496
496
jobs = {}
Original file line number Diff line number Diff line change 83
83
content : "Logfile:\A" ;
84
84
}
85
85
}
86
+
87
+ .hidden {
88
+ display : none;
89
+ }
86
90
</ style >
87
91
< div class ="container content ">
88
92
< div class ="row ">
138
142
job.title|truncate(50, True) if job.title is not none else 'Title unknown' }}</ a >
139
143
</ th >
140
144
< td > {{ job.start_time.strftime(date_format) if job.start_time is not none }}</ td >
145
+ < td class ="hidden "> {{ job.start_time if job.start_time is not none }}</ td >
141
146
< td > {{ job.job_length }}</ td >
142
147
< td class ="{{ job.status }} "> < img src ="static/img/{{ job.status }}.png " height ="30px "
143
148
width ="30px " alt ="{{ job.status }} "
163
168
$ ( document ) . ready ( function ( ) {
164
169
// call the tablesorter plugin
165
170
$ ( "table" ) . tablesorter ( {
166
- // sort on the first column and third column, order asc
167
- sortList : [ [ 1 , 1 ] ]
171
+ // sort on the third column (startime, no format)
172
+ sortList : [ [ 2 , 1 ] ]
168
173
} ) ;
169
174
} ) ;
170
175
activeTab ( "history" ) ;
You can’t perform that action at this time.
0 commit comments