Addedded code to better search options with Fuse

This commit is contained in:
NunoSempere 2021-02-25 17:56:27 +01:00
parent 09c936ebdb
commit 2de3f88eda
2 changed files with 4221 additions and 2110 deletions

File diff suppressed because one or more lines are too long

View File

@ -46,6 +46,7 @@ let coverttocsvandmerge = () => {
merged = merged.concat(json)
//console.log(merged)
}
merged = merged.map(element => ({...element, optionsstringforsearch: element.options.map(option => option.name).join(", ")}))
writefile(JSON.stringify(merged, null, 2), "metaforecasts", "", ".json")
let mergedcsv = csvfromjson(merged)
writefile(mergedcsv, "metaforecasts", "")