No need for user object. Grab item if needed.

This commit is contained in:
Edward Betts 2021-10-22 11:27:50 +01:00
parent bd9323006b
commit badef91b97

View file

@ -283,8 +283,9 @@ def search_page():
@app.route("/map/<int:zoom>/<float(signed=True):lat>/<float(signed=True):lon>") @app.route("/map/<int:zoom>/<float(signed=True):lat>/<float(signed=True):lon>")
def map_location(zoom, lat, lon): def map_location(zoom, lat, lon):
user = flask_login.current_user qid = request.args.get("item")
username = user.username if user.is_authenticated else None if qid:
api.get_item(qid[1:])
return render_template( return render_template(
"map.html", "map.html",