Add (current) streak to motivation Banner

This commit is contained in:
int2001
2025-10-04 05:03:03 +00:00
parent 0de317518e
commit bec80d5e68
2 changed files with 14 additions and 1 deletions

View File

@@ -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);