Commit f832a5b9 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent ce9d78bd
...@@ -128,8 +128,15 @@ async function run(root,name, directory, timestamp) { ...@@ -128,8 +128,15 @@ async function run(root,name, directory, timestamp) {
if (i < last.length && last[i].newAllDonePer >10) if (i < last.length && last[i].newAllDonePer >10)
las.push(last[i]) las.push(last[i])
} }
console.log(last.length) // console.log(last.length)
// for (let i=0;i<las.length;) await append('[')
for (let i=0;i<las.length;i++)
{
await append(JSON.stringify(las[i]))
if (i !==(las.length-1))
await append(',')
}
await append(']')
// last=[] // last=[]
// let newLast=[] // let newLast=[]
...@@ -151,7 +158,7 @@ async function run(root,name, directory, timestamp) { ...@@ -151,7 +158,7 @@ async function run(root,name, directory, timestamp) {
// createfileADV(root,timestamp, name, jj) // createfileADV(root,timestamp, name, jj)
createfileADV(root, timestamp, name, JSON.stringify(las, null, 2)) // createfileADV(root, timestamp, name, JSON.stringify(las, null, 2))
last = [] last = []
} }
......
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