Commit e4172f2b authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 3a30eb3c
...@@ -67,6 +67,7 @@ async function check() { ...@@ -67,6 +67,7 @@ async function check() {
if (worker !== null) { if (worker !== null) {
await fs.renameSync('allFiles/' + files[i], worker + '/' + files[i]) await fs.renameSync('allFiles/' + files[i], worker + '/' + files[i])
await makeStatusNew(worker, '1') await makeStatusNew(worker, '1')
console.log('node run.js ' + worker +' '+configFileName)
shell.exec('node run.js ' + worker +' '+configFileName, {async: true}); shell.exec('node run.js ' + worker +' '+configFileName, {async: true});
} }
......
...@@ -104,7 +104,9 @@ function initData(data, config, name, risk, pfTrade, side, riskFreeLevel) { ...@@ -104,7 +104,9 @@ function initData(data, config, name, risk, pfTrade, side, riskFreeLevel) {
} }
} }
arr = arr.sort((a, b) => moment(a.openDate, 'YYYY-MM-DD HH:mm:ss').diff(moment(b.openDate, 'YYYY-MM-DD HH:mm:ss'))) arr = _.sortBy(arr, function(o) { return new moment(o.openDate).format('YYYY.MM.DD HH:mm:ss'); });
// console.log(arr)
let cz = [] let cz = []
......
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