From aef44b5c14afcc9b48ad994534456f12be8261b3 Mon Sep 17 00:00:00 2001 From: Miguel Astor Date: Wed, 25 Mar 2026 04:51:29 -0400 Subject: [PATCH] Fixed issue with sort and theme keys still being applied as GET parameters. --- viewer/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewer/common.py b/viewer/common.py index a150015..5a4ca85 100644 --- a/viewer/common.py +++ b/viewer/common.py @@ -48,8 +48,8 @@ def get_modification_timestamp(path_obj): return 0 -def build_query(search_text, sort_key, theme): - query = {"sort": sort_key, "theme": theme} +def build_query(search_text): + query = {} if search_text != "": query["search"] = search_text