mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 03:27:45 +02:00
fix(analytics): remove charts empty values + remove useless language cache
fix(install): edit host_url helper and remove back() when create .env
This commit is contained in:
parent
bc8b88f6f6
commit
1678794153
8 changed files with 21 additions and 21 deletions
|
|
@ -33,7 +33,9 @@ class AnalyticsWebsiteByEntryPageModel extends Model
|
|||
public function getData(int $podcastId): array
|
||||
{
|
||||
if (!($found = cache("{$podcastId}_analytics_website_by_entry_page"))) {
|
||||
$found = $this->select('`entry_page` as `labels`')
|
||||
$found = $this->select(
|
||||
'IF(`entry_page`=\'/\',\'/\',SUBSTRING_INDEX(`entry_page`,\'/\',-1)) as `labels`'
|
||||
)
|
||||
->selectSum('`hits`', '`values`')
|
||||
->where([
|
||||
'`podcast_id`' => $podcastId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue