From cc0e1d1470ddfddad9de47771258bb46971921a2 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 1 Apr 2024 17:02:04 -0700 Subject: [PATCH] chore: adjust scrobble window --- api/scrobble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/scrobble.js b/api/scrobble.js index 11d13295..f5f7096e 100644 --- a/api/scrobble.js +++ b/api/scrobble.js @@ -18,7 +18,7 @@ const weekKey = () => { } const filterOldScrobbles = (scrobbles) => { - const twoWeeksAgo = DateTime.now().minus({ weeks: 2 }); + const twoWeeksAgo = DateTime.now().minus({ days: 10 }); return scrobbles.filter(scrobble => { const timestamp = DateTime.fromISO(scrobble.timestamp); return timestamp >= twoWeeksAgo;