Browse Source

add rest

master
zeus 4 years ago
parent
commit
04d3495317
  1. 9
      swarmlab-app/src/run/app.js

9
swarmlab-app/src/run/app.js

@ -417,9 +417,10 @@ cors(corsOptions), (req, res, next) => {
//if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){ //if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab)).length > 0 ){
var regexlog = new RegExp(nameofswarmlab); var regexlog = new RegExp(nameofswarmlab);
//const res = data.filter(item => item.Date.indexOf(filterKey) === 0); //const res = data.filter(item => item.Date.indexOf(filterKey) === 0);
if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab) )){ for (let ii in resdata.data) {
console.log('----->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- ' + nameofswarmlab) console.log(')))))))))))))))))))))))))))))))))))))))))) '+resdata.data[i].res25swarmlabname)
console.log('-----oooooooooooooooooooooo--- ' + item[i]) if( regexlog.test(resdata.data[ii].res25swarmlabname) ){
console.log('-----oooooooooooooooooooooo--- ' + JSON.stringify(item[i]))
resdataarray.push(item[i]) resdataarray.push(item[i])
RES.found = item[i] RES.found = item[i]
}else{ }else{
@ -427,8 +428,6 @@ cors(corsOptions), (req, res, next) => {
} }
} }
for (let i in resdata.data) {
console.log(')))))))))))))))))))))))))))))))))))))))))) '+resdata.data[i].res25swarmlabname)
} }
RES.error_msg = "ok" RES.error_msg = "ok"

Loading…
Cancel
Save