Commit 40709d5c authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent e64c02b7
......@@ -98,7 +98,6 @@ async function run() {
function add(total,dates,type)
{
let found=false
dates = _.orderBy(dates)
for (let i=0;i<adder.length;i++)
if (adder[i].total === total)
{
......@@ -106,7 +105,7 @@ function add(total,dates,type)
for (let z=0;z<dates.length;z++)
adder[i].dates.push(dates[z])
adder[i].dates=_.uniq(adder[i].dates)
adder[i].countDay=adder[i].dates.length
if (type)
adder[i].type.push(type)
......
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