Commit 08f649be authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent e971b59e
let fs = require('fs') let fs = require('fs')
let _ = require('lodash') let _ = require('lodash')
let year=2016 let year = 2016
let drawDown = [30, 40, 50] let drawDown = [30, 40, 50]
let sort = 'profitPerMonth' let sort = 'profitPerMonth'
let alocatedReserve = 3 let alocatedReserve = 3
...@@ -20,8 +20,10 @@ async function work() { ...@@ -20,8 +20,10 @@ async function work() {
try { try {
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]) console.log('push')
arr.push(directory[j + i])
}
} catch (e) { } catch (e) {
} }
...@@ -122,7 +124,7 @@ async function run(root, name, directory, timestamp) { ...@@ -122,7 +124,7 @@ async function run(root, name, directory, timestamp) {
let las = [] let las = []
for (let i = 0; i < last.length; i++) { for (let i = 0; i < last.length; i++) {
if (i < last.length) if (i < last.length)
if (last[i].total > 5 && last[i].pftrade >= 0.000001 && last[i].maxLevel ===0 ) { if (last[i].total > 5 && last[i].pftrade >= 0.000001 && last[i].maxLevel === 0) {
delete last[i].durDetailText delete last[i].durDetailText
delete last[i].metaDetailText delete last[i].metaDetailText
let needContinue = false let needContinue = false
......
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