Skip to content

Commit 8eb1681

Browse files
committed
use env
1 parent 1925990 commit 8eb1681

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

iterating_api_endpoint/pipes/top_pages.pipe

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ SQL >
1616
select
1717
pathname,
1818
uniqMerge(visits) as visits,
19-
countMerge(hits) as hits
19+
countMerge(hits) as hits,
20+
$TB_ENV as t,
2021
from
2122
analytics_pages_mv
2223
where
@@ -31,7 +32,7 @@ SQL >
3132
and date <= today()
3233
{% end %}
3334
group by
34-
pathname
35+
pathname, t
3536
order by
3637
visits desc
3738
limit {{Int32(skip, 0)}},{{Int32(limit, 50)}}

0 commit comments

Comments
 (0)