Commit 328ab225 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 1713478e
...@@ -30,7 +30,7 @@ async function run() { ...@@ -30,7 +30,7 @@ async function run() {
total.push(config[j].total) total.push(config[j].total)
let dateString = config[j].dateString.split('_') let dateString = config[j].dateString.split('_')
let runUpString = config[j].runupString.split('_') let runUpString = config[j].runupString.split('_')
let platfrom=config[j].platform.split('-')[1].replace('R','') let platfrom=config[j].platform.split('-')[1]
let arrDate = [] let arrDate = []
for (let z = 0; z < dateString.length - 2; z++) for (let z = 0; z < dateString.length - 2; z++)
...@@ -130,6 +130,9 @@ async function run() { ...@@ -130,6 +130,9 @@ async function run() {
adder[i].type = _.uniq(adder[i].type) adder[i].type = _.uniq(adder[i].type)
adder[i].type = _.orderBy(adder[i].type) adder[i].type = _.orderBy(adder[i].type)
adder[i].countOfType=adder[i].type.length adder[i].countOfType=adder[i].type.length
adder[i].AllPlatfrom=adder[i].platfrom
adder[i].AllPlatfrom=_.uniq(adder[i].AllPlatfrom)
adder[i].platfrom=adder[i].platfrom.replace('R','')
adder[i].platfrom = _.uniq(adder[i].platfrom) adder[i].platfrom = _.uniq(adder[i].platfrom)
adder[i].countOfPlatform=adder[i].platfrom.length adder[i].countOfPlatform=adder[i].platfrom.length
...@@ -178,6 +181,7 @@ async function run() { ...@@ -178,6 +181,7 @@ async function run() {
} }
createPlatfileADV(JSON.stringify(adder, null, 2)) createPlatfileADV(JSON.stringify(adder, null, 2))
for (let i = 0; i < adder.length; i++) { for (let i = 0; i < adder.length; i++) {
adder[i].platfrom=adder[i].platfrom.replace('R','')
delete adder[i].platfrom delete adder[i].platfrom
......
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