[auto-c] code cleanup - ref 64b2b76c65f4

This commit is contained in:
G
2021-07-31 15:25:26 -07:00
committed by GitHub
parent fc63327ce8
commit 2e4e9ac16b
3 changed files with 320 additions and 324 deletions
+7 -2
View File
@@ -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)
+1 -1
View File
@@ -1,4 +1,4 @@
const verbose = true
const verbose = false
const global_lock = []
const google_api_key = ''
const google_api_cs = ''
+312 -321
View File
File diff suppressed because it is too large Load Diff