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

git pu

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