main #13

Merged
jlusiardi merged 5 commits from main into live 2024-05-26 11:11:55 +02:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit dfb07ae7ee - Show all commits

View File

@ -226,5 +226,6 @@ def get_pit_stops():
"regulars": vehicle.regulars, "regulars": vehicle.regulars,
} }
user["vehicles"].append(v) user["vehicles"].append(v)
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) return render_template("pitstops.html", user=user)