From 170daf1b81aa3615d3a95db78bb2ff8395cdda3d Mon Sep 17 00:00:00 2001 From: Ross Mountjoy Date: Mon, 30 Mar 2020 17:45:39 -0400 Subject: [PATCH] - reverted experiment that was supposed to never be saved, but broke iframes. --- dashmachine/main/routes.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/dashmachine/main/routes.py b/dashmachine/main/routes.py index 1e6d0bc..8313a29 100755 --- a/dashmachine/main/routes.py +++ b/dashmachine/main/routes.py @@ -48,20 +48,14 @@ def home(): @main.route("/app_view?", methods=["GET"]) -@main.route("/app_view?", methods=["GET"]) -def app_view(app_id, url=None): +def app_view(app_id): settings = Settings.query.first() if not check_groups(settings.home_access_groups, current_user): return redirect(url_for("user_system.login")) - - if url: - title = url - - if not url: - app_db = Apps.query.filter_by(id=app_id).first() - url = f"{app_db.prefix}{app_db.url}" - title = app_db.name - return render_template("main/app-view.html", url=url, title=title) + app_db = Apps.query.filter_by(id=app_id).first() + return render_template( + "main/app-view.html", url=f"{app_db.prefix}{app_db.url}", title=app_db.name + ) @main.route("/load_data_source", methods=["GET"])