summaryrefslogtreecommitdiff
path: root/bucky
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2026-01-20 14:56:29 +0100
committerjulian laplace <julescarbon@gmail.com>2026-01-20 14:56:29 +0100
commit54282c3bc5f5e1b3204f6080cddea876ccf248a5 (patch)
tree55ab2c5a41fe93c57fd96f92999d1a34732c5376 /bucky
parent21bcda4f8961c34d7545911f1fe387bd9d3affc0 (diff)
redo lexicon
Diffstat (limited to 'bucky')
-rw-r--r--bucky/search/lexicon.js8
1 files 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"),
});
- });
+ }
});
}