From 8e29948809389c1de4ccc93cae44c3e3447c3042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 6 Jun 2023 10:24:06 +0200 Subject: [PATCH] Fix double click to report --- app/app.db | Bin 28672 -> 28672 bytes app/results/main_select.py | 4 +++- app/results/templates/error.html | 2 +- app/static/js/select.js | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/app.db b/app/app.db index 09af5f0879ef7e0f83d4bc9ecbc3791a59650cde..74aceb9f23d6945bdd17d282da688a37364a6eb7 100644 GIT binary patch delta 61 zcmZp8z}WDBae_4Cn~5^cjBhq3EVSq5FJxfii(=r5;(N7OP{5CmrIDABV{)8dHzV`p RSAOj*3=9nYn@jz>6##SY6CMBn delta 61 zcmV-D0K)%(-~oW(0gxL3>X95n0qU_}p+5@%0006G>HrUM4(hWJ5KayR4{-pHlU`1X T0RofiPKN}63;_tUbx(^Rfrk^p diff --git a/app/results/main_select.py b/app/results/main_select.py index fb57dd1..91fdb59 100644 --- a/app/results/main_select.py +++ b/app/results/main_select.py @@ -81,7 +81,9 @@ def best(file_name): except Exception as e: return render_template( "error.html", - message=f"This best results file ({file_name}) has not been created yet!", + message=f"This best results file ({file_name}) has not been " + "created yet! or...", + error=str(e), ) return render_template("best.html", data=data) diff --git a/app/results/templates/error.html b/app/results/templates/error.html index 7dab134..99a59d3 100644 --- a/app/results/templates/error.html +++ b/app/results/templates/error.html @@ -239,7 +239,7 @@
Error

{{ message }}
- +
{{ error }}
Go Back diff --git a/app/static/js/select.js b/app/static/js/select.js index 737028a..82ec58e 100644 --- a/app/static/js/select.js +++ b/app/static/js/select.js @@ -32,7 +32,7 @@ $(document).ready(function () { }); // Show file with doubleclick $("#file-table tbody").on("dblclick", "tr", function () { - showFile($(this).attr("id")); + location.href="/results/report/"+ $(this).attr("id"); }); $(document).ajaxStart(function () { $("body").addClass("ajaxLoading");