Commit de7a73cc authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent e555a032
...@@ -67,6 +67,7 @@ async function run() { ...@@ -67,6 +67,7 @@ async function run() {
for (let i = 0; i < adder.length; i++) { for (let i = 0; i < adder.length; i++) {
adder[i].dates=_.uniq(adder[i].dates) adder[i].dates=_.uniq(adder[i].dates)
adder[i].dates = _.orderBy(adder[i].dates) adder[i].dates = _.orderBy(adder[i].dates)
adder[i].countDay = adder[i].dates.length
} }
for (let i = 0; i < adder.length; i++) { for (let i = 0; i < adder.length; i++) {
adder[i].type=_.uniq(adder[i].type) adder[i].type=_.uniq(adder[i].type)
...@@ -107,7 +108,7 @@ function add(total, dates, type) { ...@@ -107,7 +108,7 @@ function add(total, dates, type) {
adder[i].dates.push(dates[z]) adder[i].dates.push(dates[z])
adder[i].countDay = adder[i].dates.length
} }
if (typeof type !=="undefined") if (typeof type !=="undefined")
......
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