From 4f01b4e3688ff28acd9b68c49dbf4e3aeae28d82 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sat, 25 May 2024 17:26:09 +0200 Subject: [PATCH] third try --- app/routes/pitstop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/pitstop.py b/app/routes/pitstop.py index 8eaaf7b..84970f4 100644 --- a/app/routes/pitstop.py +++ b/app/routes/pitstop.py @@ -226,6 +226,6 @@ def get_pit_stops(): "regulars": vehicle.regulars, } user["vehicles"].append(v) - user["vehicles"].sort(key=lambda v: (v["data"][-1].date, v["data"][-1].odometer or 0 )) + user["vehicles"].sort(key=lambda v: (v["data"][-1].date, v["data"][-1].odometer or 0 ), reverse=true) return render_template("pitstops.html", user=user)