diff --git a/brain.js b/brain.js index 2a5fc52..30b7687 100644 --- a/brain.js +++ b/brain.js @@ -91,7 +91,7 @@ function brainFor(rows) { } const brains = { all: null, station: null, stationId: "", rows: [] }; async function rebuildBrains() { - const rows = await db.all(); brains.rows = rows; + const rows = (await db.all()).filter((t) => !(t.spec && t.spec.sponsored)); brains.rows = rows; brains.all = brainFor(rows); brains.stationId = state.stationId; brains.station = state.stationId ? brainFor(rows.filter((t) => t.spec.stationId === state.stationId)) : null;