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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue