Skip to content

Commit

Permalink
add student and coach coach from all chapters, not just active ones
Browse files Browse the repository at this point in the history
  • Loading branch information
KimberleyCook committed Oct 18, 2022
1 parent 7b979fc commit f09ee81
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 40 deletions.
4 changes: 2 additions & 2 deletions get-data/counted_stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ WITH coach_count AS (
JOIN subscriptions ON subscriptions.member_id = members.id
JOIN groups ON groups.id = subscriptions.group_id
JOIN chapters ON chapters.id = groups.chapter_id
WHERE groups.name = 'Coaches' AND chapters.active IS TRUE
WHERE groups.name = 'Coaches'
)

, student_count AS (
SELECT count(members.id) FROM members
JOIN subscriptions ON subscriptions.member_id = members.id
JOIN groups ON groups.id = subscriptions.group_id
JOIN chapters ON chapters.id = groups.chapter_id
WHERE groups.name = 'Students' AND chapters.active IS TRUE
WHERE groups.name = 'Students'
)

, chapter_count AS (
Expand Down
4 changes: 2 additions & 2 deletions www/data/attended_per_year.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"year": 2021
},
{
"students": 740,
"coaches": 585,
"students": 1050,
"coaches": 799,
"year": 2022
}
]
17 changes: 16 additions & 1 deletion www/data/average_rating_per_month.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,21 @@
{
"month": 7,
"year": 2022,
"avg": 4.777777777777778
"avg": 4.8125
},
{
"month": 8,
"year": 2022,
"avg": 4.75
},
{
"month": 9,
"year": 2022,
"avg": 4.928571428571429
},
{
"month": 10,
"year": 2022,
"avg": 4.866666666666667
}
]
12 changes: 6 additions & 6 deletions www/data/counted_stats.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"coach_count": 5183,
"student_count": 14048,
"chapter_count": 30,
"workshop_count": 1740,
"coach_count": 5872,
"student_count": 16254,
"chapter_count": 28,
"workshop_count": 1781,
"monthlies_count": 51,
"events_count": 161,
"events_count": 164,
"busiest_month": 5,
"slowest_month": 12,
"average_rating": 4.754431851206045
"average_rating": 4.755777460770328
}
2 changes: 1 addition & 1 deletion www/data/last_updated_at.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"last_updated_at": "2022-07-19T14:00:10.691Z"
"last_updated_at": "2022-10-18T14:04:56.234Z"
}
36 changes: 18 additions & 18 deletions www/data/new_signups.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
[
{
"coachcount": 169,
"studentcount": 418,
"coachcount": 167,
"studentcount": 413,
"year": 2014
},
{
"coachcount": 179,
"studentcount": 648,
"coachcount": 176,
"studentcount": 642,
"year": 2015
},
{
"coachcount": 352,
"studentcount": 725,
"coachcount": 350,
"studentcount": 720,
"year": 2016
},
{
"coachcount": 497,
"studentcount": 1319,
"coachcount": 494,
"studentcount": 1308,
"year": 2017
},
{
"coachcount": 848,
"studentcount": 2099,
"coachcount": 841,
"studentcount": 2072,
"year": 2018
},
{
"coachcount": 997,
"studentcount": 2552,
"coachcount": 987,
"studentcount": 2520,
"year": 2019
},
{
"coachcount": 561,
"studentcount": 1305,
"coachcount": 557,
"studentcount": 1293,
"year": 2020
},
{
"coachcount": 353,
"studentcount": 981,
"coachcount": 349,
"studentcount": 972,
"year": 2021
},
{
"coachcount": 222,
"studentcount": 707,
"coachcount": 385,
"studentcount": 1099,
"year": 2022
}
]
6 changes: 3 additions & 3 deletions www/data/ratings_per_year.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
{
"year": 2022,
"rating": 1,
"count": 1
"count": 2
},
{
"year": 2022,
Expand All @@ -202,11 +202,11 @@
{
"year": 2022,
"rating": 4,
"count": 5
"count": 12
},
{
"year": 2022,
"rating": 5,
"count": 86
"count": 142
}
]
6 changes: 3 additions & 3 deletions www/data/returning_members.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"returning_members_count": 5090,
"attending_members_count": 9140,
"percentage_returning": 55.689277899343544
"returning_members_count": 5164,
"attending_members_count": 9330,
"percentage_returning": 55.348338692390136
}
6 changes: 3 additions & 3 deletions www/data/student_to_coach_conversion.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"student_only_members_count": 6127,
"coach_and_student_members_count": 369,
"student_to_coach_conversion": 6.022523257711768
"student_only_members_count": 6255,
"coach_and_student_members_count": 376,
"student_to_coach_conversion": 6.01119104716227
}
2 changes: 1 addition & 1 deletion www/data/workshops_per_year.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"year": 2021
},
{
"count": 109,
"count": 150,
"year": 2022
}
]

0 comments on commit f09ee81

Please sign in to comment.