mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Improve dashboard stats to show sended sms status stats
This commit is contained in:
parent
552300a971
commit
4e80a6a3a1
5 changed files with 288 additions and 199 deletions
|
@ -207,17 +207,9 @@ use Exception;
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public function count_by_day_since_for_user(int $id_user, $date)
|
||||
public function count_by_day_and_status_since_for_user(int $id_user, $date)
|
||||
{
|
||||
$counts_by_day = $this->get_model()->count_by_day_since_for_user($id_user, $date);
|
||||
$return = [];
|
||||
|
||||
foreach ($counts_by_day as $count_by_day)
|
||||
{
|
||||
$return[$count_by_day['at_ymd']] = $count_by_day['nb'];
|
||||
}
|
||||
|
||||
return $return;
|
||||
return $this->get_model()->count_by_day_and_status_since_for_user($id_user, $date);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue