|
@@ -19,7 +19,7 @@ class db():
|
|
|
|
|
|
|
|
def uploaded(self):
|
|
def uploaded(self):
|
|
|
ret = []
|
|
ret = []
|
|
|
- for f in self.ul_files.find():
|
|
|
|
|
|
|
+ for f in self.ul_files.find().sort("finished_at",-1):
|
|
|
item = jsonable(f)
|
|
item = jsonable(f)
|
|
|
item["enqueued_at"]=item["enqueued_at"].strftime("%d/%m/%Y %H:%M")
|
|
item["enqueued_at"]=item["enqueued_at"].strftime("%d/%m/%Y %H:%M")
|
|
|
item["finished_at"]=item["finished_at"].strftime("%d/%m/%Y %H:%M")
|
|
item["finished_at"]=item["finished_at"].strftime("%d/%m/%Y %H:%M")
|
|
@@ -45,7 +45,7 @@ class db():
|
|
|
if _id:
|
|
if _id:
|
|
|
ret = jsonable(self.cut_files.find_one({"_id": ObjectId(_id)}))
|
|
ret = jsonable(self.cut_files.find_one({"_id": ObjectId(_id)}))
|
|
|
else:
|
|
else:
|
|
|
- ret = [ jsonable(c) for c in self.cut_files.find() ]
|
|
|
|
|
|
|
+ ret = [ jsonable(c) for c in self.cut_files.find().sort("job_end",-1) ]
|
|
|
|
|
|
|
|
return ret
|
|
return ret
|
|
|
|
|
|