Browse Source

add rest

master
zeus 4 years ago
parent
commit
3b93c38b06
  1. 2
      swarmlab-app/src/run/app.js

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

@ -417,7 +417,7 @@ 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 => regexlog.test(item1.res25swarmlabname))){ if( resdata.data.filter(item1 => item1.res25swarmlabname.includes(nameofswarmlab) )){
console.log('----->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- ' + nameofswarmlab) console.log('----->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--- ' + nameofswarmlab)
console.log('-----oooooooooooooooooooooo--- ' + item[i]) console.log('-----oooooooooooooooooooooo--- ' + item[i])
resdataarray.push(item[i]) resdataarray.push(item[i])

Loading…
Cancel
Save