Commit 0e902a77 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 8f91dfff
...@@ -13,7 +13,6 @@ async function work() { ...@@ -13,7 +13,6 @@ async function work() {
var args = process.argv.slice(2); var args = process.argv.slice(2);
dir = args[0] dir = args[0]
let directory = await fs.readdirSync('result/' + dir) let directory = await fs.readdirSync('result/' + dir)
console.log(directory)
for (let i = 0; i < directory.length; i = i + 1000) { for (let i = 0; i < directory.length; i = i + 1000) {
// console.log('hi') // console.log('hi')
let arr = [] let arr = []
...@@ -22,9 +21,9 @@ async function work() { ...@@ -22,9 +21,9 @@ async function work() {
if ((j + i) < directory.length) if ((j + i) < directory.length)
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) === year) { // if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) === year) {
arr.push(directory[j + i]) arr.push(directory[j + i])
}
} catch (e) { } catch (e) {
} }
......
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