Commit b3715e31 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 6b503284
...@@ -39,7 +39,7 @@ async function run() { ...@@ -39,7 +39,7 @@ async function run() {
let uniqType = _.uniq(types); let uniqType = _.uniq(types);
arrDate = _.orderBy(arrDate) arrDate = _.orderBy(arrDate)
await createfileADV() // await createfileADV()
let levelSort = [] let levelSort = []
let typeSort = [] let typeSort = []
for (let i = 0; i < uniqLevels.length; i++) { for (let i = 0; i < uniqLevels.length; i++) {
...@@ -64,8 +64,8 @@ async function run() { ...@@ -64,8 +64,8 @@ async function run() {
console.log(arrDate) console.log(arrDate)
console.log(levelSort) console.log(levelSort)
console.log(typeSort) console.log(typeSort)
console.log(JSON.stringify(arrDate, null, 2)) // console.log(JSON.stringify(arrDate, null, 2))
// createfileADV() createfileADV(JSON.stringify(arrDate, null, 2))
let maxDiff = 0 let maxDiff = 0
for (let i = 0; i < arrDate.length - 1; i++) { for (let i = 0; i < arrDate.length - 1; i++) {
let diff = getDaysDiff(arrDate[i], arrDate[i + 1]) let diff = getDaysDiff(arrDate[i], arrDate[i + 1])
......
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