fix load order

This commit is contained in:
Florian Bezannier
2021-05-10 20:53:53 +02:00
parent 06535ac14e
commit b7b8fe71c8
+1 -1
View File
@@ -436,8 +436,8 @@ def serve_layout():
try:
Database.set_db_callback(update_trips)
Charging.set_default_price()
Database.set_db_callback(update_trips)
update_trips()
except (IndexError, TypeError):
logger.debug("Failed to get trips, there is probably not enough data yet:", exc_info=True)