Commit 33475336 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent dcfbcf65
...@@ -4,11 +4,13 @@ let moment = require('moment-timezone') ...@@ -4,11 +4,13 @@ let moment = require('moment-timezone')
run() run()
let adder = [] let adder = []
let root=''
async function run() { async function run() {
let configs = await fs.readdirSync('uniq/') let configs = await fs.readdirSync('last1000/')
root=configs[0]
configs= await fs.readdirSync('last1000/'+root+'/')
let arr = [] let arr = []
let arrSide = [] let arrSide = []
...@@ -20,7 +22,7 @@ async function run() { ...@@ -20,7 +22,7 @@ async function run() {
for (let i = 0; i < configs.length; i++) { for (let i = 0; i < configs.length; i++) {
let config = await fs.readFileSync('./uniq/' + configs[i] + '/default/compound1000.json', 'utf8') let config = await fs.readFileSync('./last1000/'+root+'/' + configs[i] + '/default/compound1000.json', 'utf8')
config = JSON.parse(config) config = JSON.parse(config)
......
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