Compare commits

..

8 Commits

Author SHA1 Message Date
72f4a9f49d remove more code 2024-05-22 11:37:53 +02:00
0791a23d8c fix warning about relationship confilicts
Conflict between Consumable.vehicles and Vehicle.consumables resolved by
making the Consumable.vehicles a read only relationship since we add
consumables only to vehicles. Consumable.vehicles is used in the admin
view to check if a consumable can be deleted safely.
2024-05-22 09:53:57 +02:00
80264f1d02 remove more tankerkönig references 2024-05-22 08:53:22 +02:00
a6aab66f55 fix code 2024-05-22 08:53:22 +02:00
7443f69fea remove filling stations code 2024-05-22 08:53:22 +02:00
2ce0b3a34a remove more stuff 2024-05-22 08:53:22 +02:00
fc1a64ac0c remove filling station selector 2024-05-22 08:53:22 +02:00
06653d53b2 remove link in header 2024-05-22 08:53:22 +02:00

View File

@ -226,6 +226,5 @@ 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)
return render_template("pitstops.html", user=user)