Compare commits

..

3 Commits

Author SHA1 Message Date
Joachim Lusiardi 4f01b4e368 third try 2024-05-25 17:26:09 +02:00
Joachim Lusiardi be60601f26 second try 2024-05-25 13:15:16 +02:00
Joachim Lusiardi 24c0b4c215 first try 2024-05-25 13:12:23 +02:00
1 changed files with 1 additions and 1 deletions

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 ), reverse=True)
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)