third try

This commit is contained in:
Joachim Lusiardi 2024-05-25 17:26:09 +02:00
parent be60601f26
commit 4f01b4e368

View File

@ -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)