Commit ccae9ca9 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent bf5be7c4
...@@ -35,10 +35,8 @@ async function init() { ...@@ -35,10 +35,8 @@ async function init() {
let res = await fs.readFileSync('plat.json', 'utf8'); let res = await fs.readFileSync('plat.json', 'utf8');
res=JSON.parse(res) res=JSON.parse(res)
let newArr=[] let newArr=[]
for (let i=0;i<res.length;i++)
{ let allPlatforms=res[0].AllPlatfrom
console.log('checked '+i+'/'+res.length)
let allPlatforms=res[i].AllPlatfrom
let dataFile=[] let dataFile=[]
for (let j=0;j<allPlatforms.length;j++) for (let j=0;j<allPlatforms.length;j++)
{ {
...@@ -49,12 +47,9 @@ async function init() { ...@@ -49,12 +47,9 @@ async function init() {
console.log(file , config) console.log(file , config)
dataFile.push(data) dataFile.push(data)
} }
console.log('hi')
res[i].config=dataFile
}
console.log(res[0].config[0]) console.log(dataFile[0])
} }
......
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