Skip to content

Commit 0cd4aad

Browse files
authored
Merge pull request #302 from tinybirdco/iterate_api_endpoint_101
Iterate api endpoint 101
2 parents bdd4275 + 38a2be5 commit 0cd4aad

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

iterating_api_endpoint/pipes/top_browsers.pipe

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ SQL >
3030
{% else %}
3131
and date <= today()
3232
{% end %}
33+
{% if defined(browser) %}
34+
and browser = {{String(browser)}}
35+
{% end %}
3336
group by
3437
browser
3538
order by
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tb pipe data top_browsers --date_from 2024-01-11 --date_to 2024-01-12 --format CSV
1+
tb pipe data top_browsers --date_from 2024-01-11 --date_to 2024-01-12 --browser chrome --format CSV
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"browser","device","visits","hits"
2-
"chrome","desktop",1,2
3-
"firefox","desktop",1,1
4-
"chrome","mobile-android",1,1
1+
"browser","visits","hits"
2+
"chrome",2,3
53

0 commit comments

Comments
 (0)