From a937901043eb0935f49fcf4f6ccf3aad3a0cf6a2 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Sun, 2 Feb 2025 22:01:07 -0500 Subject: [PATCH] fix text collector --- site.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site.js b/site.js index 36d5df6..449a0c4 100644 --- a/site.js +++ b/site.js @@ -174,7 +174,7 @@ async function rounder(users, data, mode) { return endn; } -async function textCollector(word, path, file) { +async function textCollector(word, path, file, data2) { if (!hh) hh = await readFile(file, 'utf8'); hh = hh.toLowerCase(); @@ -199,6 +199,10 @@ async function siteCollector(user, path, site, useLimit, data2) { return await textCollector(user, path, route, data2); } + if (site == 'db') { + return await dbCollector(user, path, route, useLimit, data2); + } + if (site == 'url') { return await urlCollector(user, path, route, useLimit, data2); }