Commit ef7ca3da authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent cfa46564
...@@ -14,14 +14,18 @@ async function init() { ...@@ -14,14 +14,18 @@ async function init() {
let com = await fs.readFileSync('raw.json', 'utf8'); let com = await fs.readFileSync('raw.json', 'utf8');
com = JSON.parse(com) com = JSON.parse(com)
let arr=[]
for (let i=0;i<com.length;i++) for (let i=0;i<com.length;i++)
{ {
let plat=com[i].platform.split('_') let plat=com[i].platform.split('_')
let value=parseFloat(plat[plat.length-1]) let value=parseFloat(plat[plat.length-1])
let config=plat[plat.length-2] let config=plat[plat.length-2]
let last=config + ' ' + value*-1 let last=config + ' ' + value*-1
console.log(last) if (com[i].type.includes(last))
arr.push(com[i])
} }
console.log(arr.length)
} }
......
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