second try

This commit is contained in:
Joachim Lusiardi 2024-05-25 13:15:16 +02:00
parent 24c0b4c215
commit be60601f26
1 changed files with 1 additions and 1 deletions

View File

@ -226,6 +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 )) user["vehicles"].sort(key=lambda v: (v["data"][-1].date, v["data"][-1].odometer or 0 ))
return render_template("pitstops.html", user=user) return render_template("pitstops.html", user=user)