fix: 24 hours

This commit is contained in:
Brennan Wilkes (Text Groove) 2026-01-24 12:34:11 -08:00
parent bc7381f63d
commit 2ead75a8c8

View file

@ -253,9 +253,8 @@ export function renderSearch($app) {
const canon = typeof canonicalSkuFn === "function" ? canonicalSkuFn : (x) => x; const canon = typeof canonicalSkuFn === "function" ? canonicalSkuFn : (x) => x;
// Filter to last 3 days (was 24 hours)
const nowMs = Date.now(); const nowMs = Date.now();
const cutoffMs = nowMs - 3 * 24 * 60 * 60 * 1000; const cutoffMs = nowMs - 24 * 60 * 60 * 1000;
function eventMs(r) { function eventMs(r) {
const t = String(r?.ts || ""); const t = String(r?.ts || "");
@ -329,7 +328,7 @@ export function renderSearch($app) {
const limited = ranked.slice(0, 140); const limited = ranked.slice(0, 140);
$results.innerHTML = $results.innerHTML =
`<div class="small">Recently changed (last 3 days):</div>` + `<div class="small">Recently changed (last 24 hours):</div>` +
limited limited
.map(({ r, meta }) => { .map(({ r, meta }) => {
const kindLabel = const kindLabel =