From badef91b97822de298a22f325a6a9f2c30325e51 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 22 Oct 2021 11:27:50 +0100 Subject: [PATCH] No need for user object. Grab item if needed. --- web_view.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_view.py b/web_view.py index d7a3192..09bfb16 100755 --- a/web_view.py +++ b/web_view.py @@ -283,8 +283,9 @@ def search_page(): @app.route("/map///") def map_location(zoom, lat, lon): - user = flask_login.current_user - username = user.username if user.is_authenticated else None + qid = request.args.get("item") + if qid: + api.get_item(qid[1:]) return render_template( "map.html",