mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Add (current) streak to motivation Banner
This commit is contained in:
@@ -91,6 +91,7 @@ class Dashboard extends CI_Controller {
|
||||
|
||||
$this->load->model('cat');
|
||||
$this->load->model('vucc');
|
||||
$this->load->model('dayswithqso_model');
|
||||
|
||||
$data['radio_status'] = $this->cat->recent_status();
|
||||
|
||||
@@ -100,6 +101,13 @@ class Dashboard extends CI_Controller {
|
||||
$data['month_qsos'] = $this->logbook_model->month_qsos($logbooks_locations_array);
|
||||
$data['year_qsos'] = $this->logbook_model->year_qsos($logbooks_locations_array);
|
||||
|
||||
$rawstreak=$this->dayswithqso_model->getAlmostCurrentStreak();
|
||||
if (is_array($rawstreak)) {
|
||||
$data['current_streak']=$rawstreak['highstreak'];
|
||||
} else {
|
||||
$data['current_streak']=0;
|
||||
}
|
||||
|
||||
// Load Countries Breakdown data into array
|
||||
$CountriesBreakdown = $this->logbook_model->total_countries_confirmed($logbooks_locations_array);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user