Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6
This commit is contained in:
1 parent
4f96b9ec82
commit
37bf31d6ba
1 file changed
+1
-1
@@ -91,7 +91,7 @@ function brainFor(rows) {
|
|||||||
}
|
}
|
||||||
const brains = { all: null, station: null, stationId: "", rows: [] };
|
const brains = { all: null, station: null, stationId: "", rows: [] };
|
||||||
async function rebuildBrains() {
|
async function rebuildBrains() {
|
||||||
const rows = (await db.all()).filter((t) => !(t.spec && t.spec.sponsored)); brains.rows = rows;
|
const rows = (await db.all()).filter((t) => !(t.spec && (t.spec.break || t.spec.sponsored))); brains.rows = rows;
|
||||||
brains.all = brainFor(rows);
|
brains.all = brainFor(rows);
|
||||||
brains.stationId = state.stationId;
|
brains.stationId = state.stationId;
|
||||||
brains.station = state.stationId ? brainFor(rows.filter((t) => t.spec.stationId === state.stationId)) : null;
|
brains.station = state.stationId ? brainFor(rows.filter((t) => t.spec.stationId === state.stationId)) : null;
|
||||||
|
|||||||
Reference in new issue
Block a user