Commit d7009df6 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 24c1e08d
...@@ -7,7 +7,7 @@ async function init() { ...@@ -7,7 +7,7 @@ async function init() {
let files = await fs.readdirSync('RunRes') let files = await fs.readdirSync('RunRes')
let prom = [] let prom = []
let all=[] let all = []
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
if (files[i].includes('.csv')) { if (files[i].includes('.csv')) {
let last = files[i].split('_') let last = files[i].split('_')
...@@ -19,7 +19,7 @@ let all=[] ...@@ -19,7 +19,7 @@ let all=[]
for (let z = 1; z < res.length; z++) for (let z = 1; z < res.length; z++)
arr.push(res[z]) arr.push(res[z])
all.push({name:file,data:arr}) all.push({name: file, data: arr})
} catch (e) { } catch (e) {
...@@ -30,7 +30,12 @@ let all=[] ...@@ -30,7 +30,12 @@ let all=[]
} }
console.log(all)
let res = await fs.readFileSync('plat.json', 'utf8');
res=JSON.parse(res)
console.log(res)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment