diff --git a/app.js b/app.js index b190499..1fc1e88 100755 --- a/app.js +++ b/app.js @@ -379,18 +379,23 @@ app.post('/analyze_string', async function (req, res, next) { custom_search = await externalApis.custom_search_ouputs(req) helper.log_to_file_queue(req.body.uuid, '[Done] Custom Search') } + if (req.body.option.includes("FindOrigins")) { + helper.log_to_file_queue(req.body.uuid, "[Starting] Finding Origins") + names_origins = await nameAnalysis.find_origins(req); + helper.log_to_file_queue(req.body.uuid, "[Done] Finding Origins") + } } else { if (req.body.option.includes('FindOrigins')) { - helper.log_to_file_queue(req.body.uuid, '[Starting] Finding Origins') const old_string_2 = req.body.string const all_usernames = req.body.string.split(',').map(async item => { + helper.log_to_file_queue(req.body.uuid, '[Starting] Finding Origins: ' + item) req.body.string = item const temp_arr = await nameAnalysis.find_origins(req) names_origins.push(...temp_arr) + helper.log_to_file_queue(req.body.uuid, '[Done] Finding Origins: ' + item) }) await Promise.all(all_usernames) req.body.string = old_string_2 - helper.log_to_file_queue(req.body.uuid, '[Done] Finding Origins') } await stringAnalysis.split_comma(req, all_words) diff --git a/modules/helper.js b/modules/helper.js index 23f38f4..ca649de 100755 --- a/modules/helper.js +++ b/modules/helper.js @@ -1,4 +1,4 @@ -const verbose = true +const verbose = false const global_lock = [] const google_api_key = '' const google_api_cs = '' diff --git a/public/app.html b/public/app.html index afc5c79..8ee98fe 100755 --- a/public/app.html +++ b/public/app.html @@ -640,7 +640,7 @@ #stats-tables tr td:nth-child(2), #stats-tables tr th:nth-child(2) { - text-align: right; + text-align: right; } .div-right-icon { @@ -898,160 +898,156 @@