Compare commits
3 Commits
remove_pla
...
main
Author | SHA1 | Date |
---|---|---|
jlusiardi | 69f077a0f5 | |
Joachim Lusiardi | dfb07ae7ee | |
Joachim Lusiardi | 208cb497aa |
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue