10 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
b539361ca7 Merge pull request 'Fix links to imprint and datenschutzerklärung' (#10) from fix_links into main
Reviewed-on: #10
2024-05-22 08:52:44 +02:00
091bfcd4ca Fix links to imprint and datenschutzerklärung 2024-05-22 08:50:13 +02:00
16 changed files with 2 additions and 23 deletions

View File

@@ -164,7 +164,7 @@ class Consumable(db.Model):
name = db.Column(db.String(255), unique=True) name = db.Column(db.String(255), unique=True)
unit = db.Column(db.String(255)) unit = db.Column(db.String(255))
vehicles = db.relationship("Vehicle", secondary=vehicles_consumables) vehicles = db.relationship("Vehicle", secondary=vehicles_consumables, viewonly=True)
def __init__(self, name, unit): def __init__(self, name, unit):
self.name = name self.name = name

View File

@@ -138,24 +138,3 @@ def delete_account():
return render_template("deleteAccountForm.html", form=form) return render_template("deleteAccountForm.html", form=form)
@app.route("/account/home", methods=["GET"])
@login_required
def get_users_home():
return jsonify(
{
"lat": float(current_user.home_lat),
"long": float(current_user.home_long),
"zoom": current_user.home_zoom,
}
)
@app.route("/account/home", methods=["POST"])
@login_required
def set_users_home():
current_user.home_lat = request.json["lat"]
current_user.home_long = request.json["long"]
current_user.home_zoom = request.json["zoom"]
db.session.commit()
return jsonify({})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -183,7 +183,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-body">
<a href="https://www.lusiardi.de/impressum/" target="_new">Impressum</a> - <a href="https://www.lusiardi.de/datenschutzerklaerung/" target="_new">Datenschutzerklärung</a> <a href="https://lusiardi.de/pages/impressum.html" target="_new">Impressum</a> - <a href="https://lusiardi.de/pages/datenschutzerklaerung.html" target="_new">Datenschutzerklärung</a>
</div> </div>
</div> </div>
</div> </div>