Commit 75ba1aec authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent c5d8e9f4
......@@ -12,11 +12,16 @@ async function init() {
}
let files = await fs.readdirSync('reverse')
let prom = []
for (let i = 0; i < files.length; i++) {
for (let i = 0; i < files.length; i=i+5) {
if (files[i].includes('.csv')) {
try {
prom.push(format(files[i]))
format(files[i])
format(files[i+1])
format(files[i+2])
format(files[i+3])
format(files[i+4])
await format(files[i+5])
} catch (e) {
}
......@@ -24,7 +29,7 @@ async function init() {
}
await Promise.all(prom)
// await Promise.all(prom)
}
......
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