Commit 5cc70b89 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent d7009df6
......@@ -34,12 +34,47 @@ async function init() {
let res = await fs.readFileSync('plat.json', 'utf8');
res=JSON.parse(res)
console.log(res)
let newArr=[]
for (let i=0;i<res.length;i++)
{
let allPlatforms=res[i].AllPlatfrom
let dataFile=[]
for (let j=0;j<allPlatforms.length;j++)
{
let last=allPlatforms[j].split('_')
let config=last[last.length-2].replace('.csv','')
let file=last[last.length-1].replace('.csv','')
let data=getDataFromFileAndConfig(all,file,config)
dataFile.push(data)
}
res[i].config=dataFile
}
console.log(res[0].dataFile)
}
function getDataFromFileAndConfig(all,file,config)
{
for (let i=0;i<all.length;i++)
{
if (all[i].name ===file)
{
let inline=all[i].data
for (let j=0;j<inline.length;j++)
{
if (inline[j].includes(config))
return inline[j]
}
}
}
}
async function format(name) {
let res = await fs.readFileSync('./RunRes/' + name, 'utf8');
res = res.split('\n')
......
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