fix code
This commit is contained in:
parent
7443f69fea
commit
a6aab66f55
@ -3,5 +3,4 @@ from .admin import *
|
||||
from .misc import *
|
||||
from .pitstop import *
|
||||
from .service import *
|
||||
from .filling_stations import *
|
||||
from .regular_cost import *
|
||||
|
@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user