No need for user object. Grab item if needed.
This commit is contained in:
parent
bd9323006b
commit
badef91b97
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue