From dcbddfc6cde29b96ae3b8cd6775707f580917634 Mon Sep 17 00:00:00 2001 From: speatzle Date: Tue, 8 Oct 2024 13:01:59 +0200 Subject: [PATCH] fix js --- static/js/library_filter.js | 4 ++-- tmpl/stats.tmpl | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/library_filter.js b/static/js/library_filter.js index 3def689..78af890 100644 --- a/static/js/library_filter.js +++ b/static/js/library_filter.js @@ -1,7 +1,7 @@ function setLibrary(library_id) { if (library_id == "-1") { - } else { window.location.href = "/stats"; + } else { + window.location.href = "/stats/" + library_id; } - window.location.href = "/stats/" + library_id; } diff --git a/tmpl/stats.tmpl b/tmpl/stats.tmpl index 7e4f56f..94134ad 100644 --- a/tmpl/stats.tmpl +++ b/tmpl/stats.tmpl @@ -1,4 +1,5 @@ {{template "head"}} +

Stats