Commit 3bc4b76d authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent b08d74de
...@@ -51,6 +51,38 @@ async function run() { ...@@ -51,6 +51,38 @@ async function run() {
console.log('All Uniq Date:' + arrDate.length) console.log('All Uniq Date:' + arrDate.length)
console.log(arrDate) console.log(arrDate)
console.log(levelSort) console.log(levelSort)
let levelBaseDays=[]
for(let z=0;z<uniqLevels.length;z++)
{
let levelInline=[]
for (let i = 0; i < configs.length; i++) {
if (!configs[i].includes('.json'))
continue
let config = await fs.readFileSync('./uniq/' + configs[i], 'utf8')
config = JSON.parse(config)
for (let j = 0; j < config.length; j++) {
if (config[j].maxLevel ===uniqLevels[z])
{
let dateString = config[j].dateString.split('_')
for (let z = 0; z < dateString.length-1; z++)
levelInline.push(dateString[z])
}
}
levelInline=_.uniq(levelInline)
levelBaseDays.push({level:uniqLevels[z],uniqDaysRun:levelInline.length})
}
}
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