Compare commits
3 Commits
main
...
sort_vehic
Author | SHA1 | Date |
---|---|---|
Joachim Lusiardi | 4f01b4e368 | |
Joachim Lusiardi | be60601f26 | |
Joachim Lusiardi | 24c0b4c215 |
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue