Browse Source

remove debugging exit statement

master
o.moresis 2 years ago
parent
commit
4d428acd12
  1. 3
      public/js/more-info.js
  2. 2
      src/Data/descriptors.php

3
public/js/more-info.js

@ -71,6 +71,7 @@ function moreInfo() { @@ -71,6 +71,7 @@ function moreInfo() {
gridCode = Alpine.store('entity').cellcode.substr(0,4);
}
console.debug("entity group:::: ", this.entityGroup);
switch(dropdown) {
case 'd':
url += '/interface/dropdowns/descriptors?entity_id=' + this.entityId + '&cellcode=' + gridCode;
@ -121,8 +122,6 @@ function moreInfo() { @@ -121,8 +122,6 @@ function moreInfo() {
this.lineChart = {};
var ctx = document.getElementById('data-chart').getContext('2d');
console.debug('fetching...');
console.debug('params: ',this.params);
console.debug('entity group: ',this.entityGroup);
const url = `/data/external/POSEIDON/${Alpine.store('entity').tspr}_${Alpine.store('entity').type}_${Alpine.store('entity').pid}`;
fetch(url)
.then(res => res.json())

2
src/Data/descriptors.php

@ -34,8 +34,6 @@ if (!empty($cellcode)) { @@ -34,8 +34,6 @@ if (!empty($cellcode)) {
JOIN criterias c on cps.criteria_id = c.id
JOIN descriptors d on c.parent_id = d.id
WHERE station_reference_id = {$entity_id}";
echo $query;
exit();
}
}

Loading…
Cancel
Save