Commit fe7f7fd6 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 5e416c91
...@@ -31,13 +31,15 @@ await renamer(com[i].config,com[i].uniq) ...@@ -31,13 +31,15 @@ await renamer(com[i].config,com[i].uniq)
for (let i = 0; i < tempFiles.length; i++) { for (let i = 0; i < tempFiles.length; i++) {
let f = await fs.readFileSync('C:\\Users\\Administrator\\Desktop\\ai\\temp\\' + tempFiles[i], 'utf8'); let f = await fs.readFileSync('C:\\Users\\Administrator\\Desktop\\ai\\temp\\' + tempFiles[i], 'utf8');
f = f.match(/.+/g) f = f.match(/.+/g)
console.log(f)
let format = tempFiles[i] let format = tempFiles[i]
// console.log(format) // console.log(format)
format = format.replace('Kelt', 'btc4').replace('SOTT', 'btc3').replace('Pmax', 'btc2').replace('PPST', 'btc1').replace('.csv','') format = format.replace('Kelt', 'btc4').replace('SOTT', 'btc3').replace('Pmax', 'btc2').replace('PPST', 'btc1').replace('.csv','')
await append(format, f) await append(format, f)
console.log(JSON.stringify(format)) console.log(format,f)
//
} }
//console.log(tempFiles) //console.log(tempFiles)
...@@ -49,7 +51,7 @@ async function append(config, data) { ...@@ -49,7 +51,7 @@ async function append(config, data) {
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
if (files[i].includes(config + '_')) { if (files[i].includes(config + '_')) {
console.log(files[i]) //console.log(files[i])
for (let j = 0; j < data.length; j++) for (let j = 0; j < data.length; j++)
appender(files[i], data[j]) appender(files[i], data[j])
} }
......
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