kopia lustrzana https://github.com/magicbug/Cloudlog
commit
444728b79c
|
@ -104,6 +104,7 @@ class Statistics extends CI_Controller {
|
|||
$modestats[$i++]['total'] = $this->logbook_model->total_fm();
|
||||
$modestats[$i]['mode'] = 'digi';
|
||||
$modestats[$i]['total'] = $this->logbook_model->total_digi();
|
||||
usort($modestats, fn($a, $b) => $b['total'] <=> $a['total']);
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
|
|
|
@ -1624,6 +1624,7 @@ class Logbook_model extends CI_Model {
|
|||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->where('COL_SAT_NAME is not null');
|
||||
$this->db->where('COL_SAT_NAME !=', '');
|
||||
$this->db->order_by('count DESC');
|
||||
$this->db->group_by('COL_SAT_NAME');
|
||||
$query = $this->db->get($this->config->item('table_name'));
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue