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