Refactor SQL query

This commit is contained in:
phl0
2026-02-19 18:30:46 +01:00
parent 843e98695f
commit f3d42f8b51
2 changed files with 19 additions and 29 deletions

View File

@@ -774,7 +774,7 @@ class API extends CI_Controller {
$query = $this->logbook_model->get_grids_worked_in_logbook($logbooks_locations_array, $band, $cnfm);
http_response_code(201);
foreach($query->result() as $line) {
$arr[] = $line->gridorcnfm;
$arr[] = $line->gridsquare;
}
echo json_encode($arr);