-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.metadata.yml
63 lines (63 loc) · 1.55 KB
/
dev.metadata.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
title: "My esporifai"
plugins:
datasette-dashboards:
wrapped:
title: esporifai wrapped
description: a wip
layout:
- [top-tracks]
- [top-artists]
- [top-albums]
filters:
category:
name: My Category
type: select
options: [Option 1, Option 2, Option 3]
charts:
top-tracks:
title: top tracks
db: spotify
query: >-
select
artist,
name,
sum(n) as total_plays
from
tracks_daily_sum
where played_date >= "2023-01-01"
group by 1,2
order by total_plays desc
limit 10
library: table
display:
top-artists:
title: top artists
db: spotify
query: >-
select
artist,
sum(n) as total_plays
from
tracks_daily_sum
where played_date >= "2023-01-01"
group by 1
order by total_plays desc
limit 10
library: table
display:
top-albums:
title: top albums
db: spotify
query: >-
select
artist,
album,
sum(n) as total_plays
from
tracks_daily_sum
where played_date >= "2023-01-01"
group by 1,2
order by total_plays desc
limit 10
library: table
display: