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

git pu

parent cd5192d1
...@@ -103,7 +103,8 @@ async function run() { ...@@ -103,7 +103,8 @@ 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)
console.log(typeSort) // console.log(typeSort)
createConfileADV(typeSort)
console.log(sideSort) console.log(sideSort)
// console.log(JSON.stringify(arrDate, null, 2)) // console.log(JSON.stringify(arrDate, null, 2))
let arrDateSortCount=[] let arrDateSortCount=[]
...@@ -177,3 +178,13 @@ function createfileADV(data) { ...@@ -177,3 +178,13 @@ function createfileADV(data) {
}); });
}); });
} }
function createConfileADV(data) {
// console.log(data)
return new Promise(function (resolve, reject) {
fs.writeFile('con.json', data, 'utf8', function (err) {
if (err) reject(err);
else resolve(data);
});
});
}
\ No newline at end of file
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