Commit 4cb159a1 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 345b2b54
......@@ -7,6 +7,7 @@ async function run() {
let configs = await fs.readdirSync('uniq/')
let arr=[]
let arrDate=[]
for (let i = 0; i < configs.length; i++) {
if (!configs[i].includes('.json'))
......@@ -16,7 +17,9 @@ async function run() {
config=JSON.parse(config)
for (let j=0;j<config.length;j++)
{
let dateString=config[i].dateString.split('_')
for (let z=0;z<dateString.length-1;z++)
arrDate.push(dateString[z])
arr.push(config[j])
}
......@@ -27,10 +30,14 @@ async function run() {
}
// console.log(arr)
arr=_.uniqBy(arr, 'platform');
arrDate=_.uniq(arrDate);
// console.log(arrDate)
console.log('All Uniq Platform:'+arr.length)
console.log('All Uniq Date:'+arrDate.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