From 23ec05cd59cdcf612df12c7848ab46a706790cec Mon Sep 17 00:00:00 2001 From: Eugene Dubinin Date: Fri, 20 Dec 2024 17:03:00 +0200 Subject: [PATCH] order backup/restore jobs by start_time, desc refs: #569 --- pgmanage/app/bgjob/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgmanage/app/bgjob/jobs.py b/pgmanage/app/bgjob/jobs.py index 7b926846c..8db9d3850 100644 --- a/pgmanage/app/bgjob/jobs.py +++ b/pgmanage/app/bgjob/jobs.py @@ -385,7 +385,7 @@ def _check_job_description(job): @staticmethod def list(user): - jobs = Job.objects.filter(user=user).select_related("connection") + jobs = Job.objects.filter(user=user).select_related("connection").order_by('-start_time') changed = False res = []