change args
This commit is contained in:
parent
e2aa17980b
commit
9a8111224b
1 changed files with 6 additions and 5 deletions
5
site.js
5
site.js
|
@ -4,6 +4,7 @@ import { rankCalc } from "./rank.js";
|
|||
|
||||
let cache = {};
|
||||
let site = process.env.site || 'darflen';
|
||||
let route = process.env.route || './test.txt';
|
||||
let hh;
|
||||
|
||||
async function textCollector(word, path, file) {
|
||||
|
@ -22,8 +23,8 @@ async function siteCollector(user, path, site) {
|
|||
let i = 1;
|
||||
let out = [];
|
||||
|
||||
if (site.startsWith('text_')) {
|
||||
return await textCollector(user, path, site.split('text_')[1]);
|
||||
if (site == 'file') {
|
||||
return await textCollector(user, path, route);
|
||||
}
|
||||
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in a new issue