Commit 081955bf authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 83144944
...@@ -17,8 +17,8 @@ let com ...@@ -17,8 +17,8 @@ let com
async function init() { async function init() {
com = await fs.readFileSync('t.json', 'utf8'); com = await fs.readFileSync('t.json', 'utf8');
let bad = await fs.readFileSync('bad.txt', 'utf8'); let bad = await fs.readFileSync('bad.txt', 'utf8');
bad=JSON.parse(bad)
base=parseFloat(bad) base=parseFloat(bad.bad)
com = JSON.parse(com) com = JSON.parse(com)
...@@ -74,7 +74,7 @@ function run() ...@@ -74,7 +74,7 @@ function run()
if (worth < base) { if (worth < base) {
base=worth base=worth
console.log(arrNew[0].sum,balance,worth) console.log(arrNew[0].sum,balance,worth)
createfileADV(base) createfileADV(JSON.stringify({bad:base}))
} }
// let start=false // let start=false
// let arr2=[] // let arr2=[]
......
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