mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
fix: re-order graph values
This commit is contained in:
parent
e53f819264
commit
35f633b4c7
@ -40,7 +40,7 @@ class AnalyticsPodcastByCountryModel extends Model
|
||||
'`podcast_id`' => $podcastId,
|
||||
'`date` >' => date('Y-m-d', strtotime('-1 week')),
|
||||
])
|
||||
->orderBy('`labels`', 'ASC')
|
||||
->orderBy('`values`', 'DESC')
|
||||
->findAll();
|
||||
|
||||
cache()->save(
|
||||
|
@ -44,7 +44,7 @@ class AnalyticsPodcastByRegionModel extends Model
|
||||
'`podcast_id`' => $podcastId,
|
||||
'`date` >' => date('Y-m-d', strtotime('-1 week')),
|
||||
])
|
||||
->orderBy('`country_code`, `region_code`', 'ASC')
|
||||
->orderBy('`values`', 'DESC')
|
||||
->findAll();
|
||||
|
||||
cache()->save(
|
||||
|
@ -40,7 +40,7 @@ class AnalyticsWebsiteByBrowserModel extends Model
|
||||
'`podcast_id`' => $podcastId,
|
||||
'`date` >' => date('Y-m-d', strtotime('-1 week')),
|
||||
])
|
||||
->orderBy('`browser`', 'ASC')
|
||||
->orderBy('`values`', 'DESC')
|
||||
->findAll();
|
||||
|
||||
cache()->save(
|
||||
|
@ -40,7 +40,8 @@ class AnalyticsWebsiteByEntryPageModel extends Model
|
||||
'`podcast_id`' => $podcastId,
|
||||
'`date` >' => date('Y-m-d', strtotime('-1 week')),
|
||||
])
|
||||
->orderBy('`entry_page`', 'ASC')
|
||||
->orderBy('`values`', 'DESC')
|
||||
->limit(10)
|
||||
->findAll();
|
||||
|
||||
cache()->save(
|
||||
|
@ -40,7 +40,8 @@ class AnalyticsWebsiteByRefererModel extends Model
|
||||
'`podcast_id`' => $podcastId,
|
||||
'`date` >' => date('Y-m-d', strtotime('-1 week')),
|
||||
])
|
||||
->orderBy('`referer`', 'ASC')
|
||||
->orderBy('`values`', 'DESC')
|
||||
->limit(10)
|
||||
->findAll();
|
||||
|
||||
cache()->save(
|
||||
@ -69,7 +70,8 @@ class AnalyticsWebsiteByRefererModel extends Model
|
||||
'`podcast_id`' => $podcastId,
|
||||
'`date` >' => date('Y-m-d', strtotime('-1 week')),
|
||||
])
|
||||
->orderBy('`domain`', 'ASC')
|
||||
->orderBy('`values`', 'DESC')
|
||||
->limit(10)
|
||||
->findAll();
|
||||
|
||||
cache()->save(
|
||||
|
Loading…
x
Reference in New Issue
Block a user