mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +02:00
feat: set min PHP version to 8.4
update CI4 to 4.6.0 + use codeigniter-vite and vite-plugin-codeigniter to load assets
This commit is contained in:
parent
0e4e301b81
commit
94cea0ce91
397 changed files with 4693 additions and 4302 deletions
|
|
@ -246,7 +246,7 @@ class AnalyticsPodcastModel extends Model
|
|||
{
|
||||
if (! ($found = cache('analytics_total_bandwidth_by_month'))) {
|
||||
$found = $this->select(
|
||||
'DATE_FORMAT(updated_at,"%Y-%m") as labels, ROUND(sum(bandwidth) / 1000000, 2) as `values`'
|
||||
'DATE_FORMAT(updated_at,"%Y-%m") as labels, ROUND(sum(bandwidth) / 1000000, 2) as `values`',
|
||||
)
|
||||
->groupBy('labels')
|
||||
->orderBy('labels', 'ASC')
|
||||
|
|
@ -268,7 +268,7 @@ class AnalyticsPodcastModel extends Model
|
|||
{
|
||||
if (! ($found = cache('analytics_total_storage_by_month'))) {
|
||||
$found = (new MediaModel())->select(
|
||||
'DATE_FORMAT(uploaded_at,"%Y-%m") as labels, ROUND(sum(file_size) / 1000000, 2) as `values`'
|
||||
'DATE_FORMAT(uploaded_at,"%Y-%m") as labels, ROUND(sum(file_size) / 1000000, 2) as `values`',
|
||||
)
|
||||
->groupBy('labels')
|
||||
->orderBy('labels', 'ASC')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue