Addedded code to better search options with Fuse
This commit is contained in:
parent
09c936ebdb
commit
2de3f88eda
File diff suppressed because one or more lines are too long
|
@ -46,6 +46,7 @@ let coverttocsvandmerge = () => {
|
||||||
merged = merged.concat(json)
|
merged = merged.concat(json)
|
||||||
//console.log(merged)
|
//console.log(merged)
|
||||||
}
|
}
|
||||||
|
merged = merged.map(element => ({...element, optionsstringforsearch: element.options.map(option => option.name).join(", ")}))
|
||||||
writefile(JSON.stringify(merged, null, 2), "metaforecasts", "", ".json")
|
writefile(JSON.stringify(merged, null, 2), "metaforecasts", "", ".json")
|
||||||
let mergedcsv = csvfromjson(merged)
|
let mergedcsv = csvfromjson(merged)
|
||||||
writefile(mergedcsv, "metaforecasts", "")
|
writefile(mergedcsv, "metaforecasts", "")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user