This commit is contained in:
2024-05-22 08:35:26 +02:00
parent 7443f69fea
commit a6aab66f55
5 changed files with 0 additions and 21 deletions

View File

@@ -3,5 +3,4 @@ from .admin import *
from .misc import *
from .pitstop import *
from .service import *
from .filling_stations import *
from .regular_cost import *

View File

@@ -13,13 +13,9 @@ from .. import app, db, user_datastore
@app.route("/account", methods=["GET"])
@login_required
def get_account_page():
stations = [x.as_dict() for x in current_user.favourite_filling_stations]
for station in stations:
station["state"] = "favourite"
return render_template(
"account.html",
map_pos=(current_user.home_lat, current_user.home_long, current_user.home_zoom),
fs=json.dumps(stations),
)

View File

@@ -20,7 +20,6 @@ from ..tools import (
db_log_add,
pitstop_service_key,
get_event_line_for_vehicle,
update_filling_station_prices,
RegularCostInstance,
calculate_regular_cost_instances,
get_users_active_vehicle,

View File

@@ -18,7 +18,6 @@ from ..tools import (
db_log_add,
pitstop_service_key,
get_event_line_for_vehicle,
update_filling_station_prices,
get_users_active_vehicle,
)
from .. import app, db