hotfix: excluding sum filters works again

This commit is contained in:
fin444 2022-09-17 17:07:56 -04:00
parent 087e9a6698
commit 85d84f6746

View file

@ -217,10 +217,14 @@ function do_item_search() {
continue; // empty continue; // empty
} }
let filter_name = translate_mappings[raw_name]; let filter_name = translate_mappings[raw_name];
if (filter_name === undefined) {
filter_name = special_mappings[raw_name];
if (filter_name === undefined) { if (filter_name === undefined) {
document.getElementById("summary").innerHTML = "Error: The excluded filter \"" + exclude.input_elem.value + "\" is not recognized"; document.getElementById("summary").innerHTML = "Error: The excluded filter \"" + exclude.input_elem.value + "\" is not recognized";
return; return;
} }
filter_name = "(" + filter_name + ")";
}
queries.push("f:" + filter_name + "=0"); queries.push("f:" + filter_name + "=0");
} }