fix text collector
This commit is contained in:
parent
0ae7c849b6
commit
a937901043
1 changed files with 5 additions and 1 deletions
6
site.js
6
site.js
|
@ -174,7 +174,7 @@ async function rounder(users, data, mode) {
|
||||||
return endn;
|
return endn;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function textCollector(word, path, file) {
|
async function textCollector(word, path, file, data2) {
|
||||||
if (!hh) hh = await readFile(file, 'utf8');
|
if (!hh) hh = await readFile(file, 'utf8');
|
||||||
|
|
||||||
hh = hh.toLowerCase();
|
hh = hh.toLowerCase();
|
||||||
|
@ -199,6 +199,10 @@ async function siteCollector(user, path, site, useLimit, data2) {
|
||||||
return await textCollector(user, path, route, data2);
|
return await textCollector(user, path, route, data2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (site == 'db') {
|
||||||
|
return await dbCollector(user, path, route, useLimit, data2);
|
||||||
|
}
|
||||||
|
|
||||||
if (site == 'url') {
|
if (site == 'url') {
|
||||||
return await urlCollector(user, path, route, useLimit, data2);
|
return await urlCollector(user, path, route, useLimit, data2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue