mirror of
https://github.com/qeeqbox/social-analyzer.git
synced 2026-09-10 03:37:45 +02:00
[auto-c] code cleanup - ref 64b2b76c65f4
This commit is contained in:
@@ -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
@@ -1,4 +1,4 @@
|
||||
const verbose = true
|
||||
const verbose = false
|
||||
const global_lock = []
|
||||
const google_api_key = ''
|
||||
const google_api_cs = ''
|
||||
|
||||
+312
-321
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user