Skip to content

Commit f09ee81

Browse files
committed
add student and coach coach from all chapters, not just active ones
1 parent 7b979fc commit f09ee81

10 files changed

+55
-40
lines changed

get-data/counted_stats.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ WITH coach_count AS (
33
JOIN subscriptions ON subscriptions.member_id = members.id
44
JOIN groups ON groups.id = subscriptions.group_id
55
JOIN chapters ON chapters.id = groups.chapter_id
6-
WHERE groups.name = 'Coaches' AND chapters.active IS TRUE
6+
WHERE groups.name = 'Coaches'
77
)
88

99
, student_count AS (
1010
SELECT count(members.id) FROM members
1111
JOIN subscriptions ON subscriptions.member_id = members.id
1212
JOIN groups ON groups.id = subscriptions.group_id
1313
JOIN chapters ON chapters.id = groups.chapter_id
14-
WHERE groups.name = 'Students' AND chapters.active IS TRUE
14+
WHERE groups.name = 'Students'
1515
)
1616

1717
, chapter_count AS (

www/data/attended_per_year.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"year": 2021
4646
},
4747
{
48-
"students": 740,
49-
"coaches": 585,
48+
"students": 1050,
49+
"coaches": 799,
5050
"year": 2022
5151
}
5252
]

www/data/average_rating_per_month.json

+16-1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,21 @@
482482
{
483483
"month": 7,
484484
"year": 2022,
485-
"avg": 4.777777777777778
485+
"avg": 4.8125
486+
},
487+
{
488+
"month": 8,
489+
"year": 2022,
490+
"avg": 4.75
491+
},
492+
{
493+
"month": 9,
494+
"year": 2022,
495+
"avg": 4.928571428571429
496+
},
497+
{
498+
"month": 10,
499+
"year": 2022,
500+
"avg": 4.866666666666667
486501
}
487502
]

www/data/counted_stats.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"coach_count": 5183,
3-
"student_count": 14048,
4-
"chapter_count": 30,
5-
"workshop_count": 1740,
2+
"coach_count": 5872,
3+
"student_count": 16254,
4+
"chapter_count": 28,
5+
"workshop_count": 1781,
66
"monthlies_count": 51,
7-
"events_count": 161,
7+
"events_count": 164,
88
"busiest_month": 5,
99
"slowest_month": 12,
10-
"average_rating": 4.754431851206045
10+
"average_rating": 4.755777460770328
1111
}

www/data/last_updated_at.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"last_updated_at": "2022-07-19T14:00:10.691Z"
2+
"last_updated_at": "2022-10-18T14:04:56.234Z"
33
}

www/data/new_signups.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
[
22
{
3-
"coachcount": 169,
4-
"studentcount": 418,
3+
"coachcount": 167,
4+
"studentcount": 413,
55
"year": 2014
66
},
77
{
8-
"coachcount": 179,
9-
"studentcount": 648,
8+
"coachcount": 176,
9+
"studentcount": 642,
1010
"year": 2015
1111
},
1212
{
13-
"coachcount": 352,
14-
"studentcount": 725,
13+
"coachcount": 350,
14+
"studentcount": 720,
1515
"year": 2016
1616
},
1717
{
18-
"coachcount": 497,
19-
"studentcount": 1319,
18+
"coachcount": 494,
19+
"studentcount": 1308,
2020
"year": 2017
2121
},
2222
{
23-
"coachcount": 848,
24-
"studentcount": 2099,
23+
"coachcount": 841,
24+
"studentcount": 2072,
2525
"year": 2018
2626
},
2727
{
28-
"coachcount": 997,
29-
"studentcount": 2552,
28+
"coachcount": 987,
29+
"studentcount": 2520,
3030
"year": 2019
3131
},
3232
{
33-
"coachcount": 561,
34-
"studentcount": 1305,
33+
"coachcount": 557,
34+
"studentcount": 1293,
3535
"year": 2020
3636
},
3737
{
38-
"coachcount": 353,
39-
"studentcount": 981,
38+
"coachcount": 349,
39+
"studentcount": 972,
4040
"year": 2021
4141
},
4242
{
43-
"coachcount": 222,
44-
"studentcount": 707,
43+
"coachcount": 385,
44+
"studentcount": 1099,
4545
"year": 2022
4646
}
4747
]

www/data/ratings_per_year.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
{
193193
"year": 2022,
194194
"rating": 1,
195-
"count": 1
195+
"count": 2
196196
},
197197
{
198198
"year": 2022,
@@ -202,11 +202,11 @@
202202
{
203203
"year": 2022,
204204
"rating": 4,
205-
"count": 5
205+
"count": 12
206206
},
207207
{
208208
"year": 2022,
209209
"rating": 5,
210-
"count": 86
210+
"count": 142
211211
}
212212
]

www/data/returning_members.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"returning_members_count": 5090,
3-
"attending_members_count": 9140,
4-
"percentage_returning": 55.689277899343544
2+
"returning_members_count": 5164,
3+
"attending_members_count": 9330,
4+
"percentage_returning": 55.348338692390136
55
}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"student_only_members_count": 6127,
3-
"coach_and_student_members_count": 369,
4-
"student_to_coach_conversion": 6.022523257711768
2+
"student_only_members_count": 6255,
3+
"coach_and_student_members_count": 376,
4+
"student_to_coach_conversion": 6.01119104716227
55
}

www/data/workshops_per_year.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"year": 2021
3737
},
3838
{
39-
"count": 109,
39+
"count": 150,
4040
"year": 2022
4141
}
4242
]

0 commit comments

Comments
 (0)