From a6aab66f55ad33c971903008e940ab73ae221bdc Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Wed, 22 May 2024 08:35:26 +0200 Subject: [PATCH] fix code --- app/routes/__init__.py | 1 - app/routes/account.py | 4 ---- app/routes/pitstop.py | 1 - app/routes/regular_cost.py | 1 - app/static/css/main.css | 14 -------------- 5 files changed, 21 deletions(-) diff --git a/app/routes/__init__.py b/app/routes/__init__.py index 00e44b6..c822914 100644 --- a/app/routes/__init__.py +++ b/app/routes/__init__.py @@ -3,5 +3,4 @@ from .admin import * from .misc import * from .pitstop import * from .service import * -from .filling_stations import * from .regular_cost import * diff --git a/app/routes/account.py b/app/routes/account.py index 1bc4fdf..d726179 100644 --- a/app/routes/account.py +++ b/app/routes/account.py @@ -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), ) diff --git a/app/routes/pitstop.py b/app/routes/pitstop.py index 59d14fd..dde6742 100644 --- a/app/routes/pitstop.py +++ b/app/routes/pitstop.py @@ -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, diff --git a/app/routes/regular_cost.py b/app/routes/regular_cost.py index 78a73ae..a05d5ba 100644 --- a/app/routes/regular_cost.py +++ b/app/routes/regular_cost.py @@ -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 diff --git a/app/static/css/main.css b/app/static/css/main.css index 0b330b4..4535343 100644 --- a/app/static/css/main.css +++ b/app/static/css/main.css @@ -94,16 +94,6 @@ and (max-device-width : 568px) { } } -.filling_station_info { - margin: 5px; - border: 1px solid; -} - -.filling_station_info img{ - margin-top: 6px; - height:48px; -} - /* * styling for sortable tables */ @@ -120,7 +110,3 @@ th.headerSortUp { th.headerSortDown { background-image: url(../img/up.gif); } - -.filling_station_closed { - text-decoration: line-through; -}