From 54282c3bc5f5e1b3204f6080cddea876ccf248a5 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Tue, 20 Jan 2026 14:56:29 +0100 Subject: redo lexicon --- bucky/search/lexicon.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bucky/search/lexicon.js b/bucky/search/lexicon.js index 97a5864..4e6009f 100644 --- a/bucky/search/lexicon.js +++ b/bucky/search/lexicon.js @@ -63,25 +63,25 @@ function parse_comments() { .fetchAll() .then((comments) => { console.log("got comments", comments.length); - comments.forEach((comment) => { + for (const comment of comments) { total += parse_terms({ string: comment.get("comment").toString(), thread: comment.get("thread"), comment: comment.get("id"), }); - }); + } }); } function parse_files() { return db.File.fetchAll().then((files) => { console.log("got files", files.length); - files.forEach((file) => { + for (const file of files) { total += parse_terms({ string: file.get("filename"), thread: file.get("thread"), file: file.get("id"), }); - }); + } }); } -- cgit v1.2.3-70-g09d2