Commit 9d858e2c authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 4233bce7
...@@ -128,31 +128,31 @@ async function run() { ...@@ -128,31 +128,31 @@ async function run() {
console.log('Max Diff Day:' + maxDiff) console.log('Max Diff Day:' + maxDiff)
let levelBaseDays = [] let levelBaseDays = []
for (let l = 0; l < uniqLevels.length; l++) { // for (let l = 0; l < uniqLevels.length; l++) {
let levelInline = [] // let levelInline = []
for (let i = 0; i < configs.length; i++) { // for (let i = 0; i < configs.length; i++) {
//
//
let config = await fs.readFileSync('./uniq/' + configs[i] + '/default/compound1000.json', 'utf8') // let config = await fs.readFileSync('./uniq/' + configs[i] + '/default/compound1000.json', 'utf8')
config = JSON.parse(config) // config = JSON.parse(config)
//
//
for (let j = 0; j < config.length; j++) { // for (let j = 0; j < config.length; j++) {
if (config[j].maxLevel === uniqLevels[l]) { // if (config[j].maxLevel === uniqLevels[l]) {
let dateString = config[j].dateString.split('_') // let dateString = config[j].dateString.split('_')
//
for (let z = 0; z < dateString.length - 1; z++) // for (let z = 0; z < dateString.length - 1; z++)
levelInline.push(dateString[z]) // levelInline.push(dateString[z])
//
} // }
//
} // }
//
//
} // }
levelInline = _.uniq(levelInline) // levelInline = _.uniq(levelInline)
levelBaseDays.push({level: uniqLevels[l], uniqDaysRun: levelInline.length}) // levelBaseDays.push({level: uniqLevels[l], uniqDaysRun: levelInline.length})
} // }
let newTypeSort=[] let newTypeSort=[]
...@@ -182,7 +182,7 @@ let newTypeSort=[] ...@@ -182,7 +182,7 @@ let newTypeSort=[]
} }
createConfileADV(JSON.stringify(newTypeSort, null, 2)) createConfileADV(JSON.stringify(newTypeSort, null, 2))
console.log(levelBaseDays) // console.log(levelBaseDays)
} }
......
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