mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Fixing test script, changing min match to add in searching
This commit is contained in:
parent
8867d1f3b1
commit
6241d29f1f
5 changed files with 4 additions and 16 deletions
|
@ -38,7 +38,7 @@ echo "sent data":
|
|||
sentdata="{
|
||||
\"questions\": [
|
||||
{
|
||||
\"q\": \"${q}\",
|
||||
\"Q\": \"${q}\",
|
||||
\"subj\": \"${subj}\",
|
||||
\"data\": ${data}
|
||||
}
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
"pornvids": {
|
||||
"path": "./modules/pornvids/pornvids.js",
|
||||
"publicdirs": [
|
||||
"publicDirs/vids/"
|
||||
],
|
||||
"name": "pornvids",
|
||||
"urls": [
|
||||
"pornvids.frylabs.net"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -40,7 +40,7 @@ import utils from './utils/utils'
|
|||
import dbtools from './utils/dbtools'
|
||||
import reqlogger from './middlewares/reqlogger.middleware'
|
||||
import idStats from './utils/ids'
|
||||
const extraModulesFile = './src/extraModules.json'
|
||||
const extraModulesFile = './data/extraModules.json'
|
||||
const statExcludeFile = './data/statExclude.json'
|
||||
const modulesFile = './src/modules.json'
|
||||
const usersDBPath = './data/dbs/users.db'
|
||||
|
|
|
@ -33,7 +33,7 @@ const specialChars = ['&', '\\+']
|
|||
/* Percent minus for length difference */
|
||||
const lengthDiffMultiplier = 10
|
||||
/* Minimum ammount to consider that two questions match during answering */
|
||||
const minMatchAmmount = 60
|
||||
const minMatchAmmount = 70
|
||||
/* If all of the results are below this match percent (when only one subject is searched due to
|
||||
* subject name matching) then all subjects are searched for answer */
|
||||
const minMatchToNotSearchOtherSubjects = 90
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit dca3ebdbfba1df1ade4268c10bf66bba5b7065c6
|
||||
Subproject commit 7d5b14456f8666e52df19206ece84f6068049c26
|
Loading…
Add table
Add a link
Reference in a new issue