Commit 118739ce authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 164280e1
......@@ -18,6 +18,7 @@ async function work() {
let arr = []
for (let j = 0; j < 1000; j++) {
try {
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) <=year)
if ((j + i) < directory.length)
arr.push(directory[j + i])
} catch (e) {
......@@ -120,7 +121,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 && parseFloat(last[i].platform.split('Y')[0].split('-')[1]) <=year) {
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
......
let t='last.json-2021Y220217122912_O1_BNC_ETHUSDT_Lp4344_1ETH3.csv'
let t='last.json-2021Y220217123254_O1_BNC_ETHUSDT_Lp7437_1ETH13.csv'
console.log()
\ No newline at end of file
console.log(parseFloat(t.split('Y')[0].split('-')[1]))
\ No newline at end of file
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