Skip to content

Commit 8f41f02

Browse files
committed
filter by browser
1 parent d9ca651 commit 8f41f02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

iterating_api_endpoint/pipes/top_browsers.pipe

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ SQL >
1515
%
1616
select
1717
browser,
18-
device,
1918
uniqMerge(visits) as visits,
2019
countMerge(hits) as hits
2120
from
@@ -31,8 +30,11 @@ SQL >
3130
{% else %}
3231
and date <= today()
3332
{% end %}
33+
{% if defined(browser) %}
34+
and browser = {{String(browser)}}
35+
{% end %}
3436
group by
35-
browser, device
37+
browser
3638
order by
3739
visits desc
3840
limit {{Int32(skip, 0)}},{{Int32(limit, 50)}}

0 commit comments

Comments
 (0)