From c89623c3a8b0c2327068f65c0f83008a0db3cb33 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Fri, 12 May 2023 14:13:47 +0200 Subject: [PATCH 1/2] Dependencies in libXML now have specified versions Co-authored-by: Adam Bem Reviewed-on: https://gitea.release11.com/R11/release11-tools/pulls/187 Reviewed-by: Mikolaj Widla --- Backend-libXML/requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Backend-libXML/requirements.txt b/Backend-libXML/requirements.txt index 7c41ff0..abb4521 100644 --- a/Backend-libXML/requirements.txt +++ b/Backend-libXML/requirements.txt @@ -1,3 +1,3 @@ -lxml -flask -flask_cors \ No newline at end of file +lxml==4.9.2 +flask==2.3.2 +flask_cors==3.0.10 \ No newline at end of file From 2d97e39dbe36ca07c2a1e711cd5408bf279e3205 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Fri, 12 May 2023 15:03:46 +0200 Subject: [PATCH 2/2] Fixed 404 when no lastPage was stored (solves #189) Co-authored-by: Adam Bem Reviewed-on: https://gitea.release11.com/R11/release11-tools/pulls/190 --- Frontend/assets/scripts/frame.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Frontend/assets/scripts/frame.js b/Frontend/assets/scripts/frame.js index 9d2335c..c1c72f7 100644 --- a/Frontend/assets/scripts/frame.js +++ b/Frontend/assets/scripts/frame.js @@ -107,7 +107,11 @@ function changeTool(tool) { * @returns {void} */ function loadLastPage() { - const lastPage = localStorage.getItem("lastPage"); + var lastPage = localStorage.getItem("lastPage"); + if (lastPage == null) { + lastPage = "xpath"; + } + switch (lastPage) { // XML category is default. case "jsonform": changeActiveTools('JSON');