From 4f7d817f6aca01ca9348e033dcb74f48578abf4a Mon Sep 17 00:00:00 2001 From: aklishin-gcp Date: Wed, 13 May 2026 22:20:48 -0700 Subject: [PATCH] Update index.html to assume hardware is CPU if not specified After recent updates a number of databases are not shown during filtering because hardware is not specified. This change assume hardware is CPU when it's missing. Another option is to add hardware to all results, but that's 2K files and will be a larger change. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 3cb6d15aa..d92b28c91 100644 --- a/index.html +++ b/index.html @@ -777,7 +777,7 @@

Detailed Comparison

const matches = data.filter(elem => ((selectors.tuned.yes && elem.tuned === "yes") || (selectors.tuned.no && elem.tuned === "no")) && ((selectors.opensource.yes && elem.proprietary === "no") || (selectors.opensource.no && elem.proprietary === "yes")) && - ((selectors.hardware.cpu && elem.hardware === "cpu") || (selectors.hardware.gpu && elem.hardware === "gpu"))); + ((selectors.hardware.cpu && (elem.hardware === "cpu" || !elem.hardware)) || (selectors.hardware.gpu && elem.hardware === "gpu"))); function apply(container, getValues) { const allowed = new Set(matches.flatMap(getValues).map(x => String(x))); @@ -1083,7 +1083,7 @@

Detailed Comparison

elem.tags.filter(type => selectors.type[type]).length > 0 && ((selectors.tuned.yes && elem.tuned === "yes") || (selectors.tuned.no && elem.tuned === "no")) && ((selectors.opensource.yes && elem.proprietary === "no") || (selectors.opensource.no && elem.proprietary === "yes")) && - ((selectors.hardware.cpu && elem.hardware === "cpu") || (selectors.hardware.gpu && elem.hardware === "gpu")) + ((selectors.hardware.cpu && (elem.hardware === "cpu" || !elem.hardware)) || (selectors.hardware.gpu && elem.hardware === "gpu")) ); /// Filter out unreasonable entries