From f09ee816df433b4aed12bedf24437601ab550404 Mon Sep 17 00:00:00 2001 From: Kimberley Cook Date: Tue, 4 Oct 2022 17:52:53 +0100 Subject: [PATCH] add student and coach coach from all chapters, not just active ones --- get-data/counted_stats.sql | 4 +-- www/data/attended_per_year.json | 4 +-- www/data/average_rating_per_month.json | 17 ++++++++++- www/data/counted_stats.json | 12 ++++---- www/data/last_updated_at.json | 2 +- www/data/new_signups.json | 36 +++++++++++------------ www/data/ratings_per_year.json | 6 ++-- www/data/returning_members.json | 6 ++-- www/data/student_to_coach_conversion.json | 6 ++-- www/data/workshops_per_year.json | 2 +- 10 files changed, 55 insertions(+), 40 deletions(-) diff --git a/get-data/counted_stats.sql b/get-data/counted_stats.sql index 028f4ba..135736a 100644 --- a/get-data/counted_stats.sql +++ b/get-data/counted_stats.sql @@ -3,7 +3,7 @@ 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 ( @@ -11,7 +11,7 @@ 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 = 'Students' AND chapters.active IS TRUE + WHERE groups.name = 'Students' ) , chapter_count AS ( diff --git a/www/data/attended_per_year.json b/www/data/attended_per_year.json index ccd129c..6b7d86f 100644 --- a/www/data/attended_per_year.json +++ b/www/data/attended_per_year.json @@ -45,8 +45,8 @@ "year": 2021 }, { - "students": 740, - "coaches": 585, + "students": 1050, + "coaches": 799, "year": 2022 } ] \ No newline at end of file diff --git a/www/data/average_rating_per_month.json b/www/data/average_rating_per_month.json index c0edc4b..2e20158 100644 --- a/www/data/average_rating_per_month.json +++ b/www/data/average_rating_per_month.json @@ -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 } ] \ No newline at end of file diff --git a/www/data/counted_stats.json b/www/data/counted_stats.json index 06531eb..e41e050 100644 --- a/www/data/counted_stats.json +++ b/www/data/counted_stats.json @@ -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 } \ No newline at end of file diff --git a/www/data/last_updated_at.json b/www/data/last_updated_at.json index a77bee2..371285a 100644 --- a/www/data/last_updated_at.json +++ b/www/data/last_updated_at.json @@ -1,3 +1,3 @@ { - "last_updated_at": "2022-07-19T14:00:10.691Z" + "last_updated_at": "2022-10-18T14:04:56.234Z" } \ No newline at end of file diff --git a/www/data/new_signups.json b/www/data/new_signups.json index d5225ec..b53ea82 100644 --- a/www/data/new_signups.json +++ b/www/data/new_signups.json @@ -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 } ] \ No newline at end of file diff --git a/www/data/ratings_per_year.json b/www/data/ratings_per_year.json index 3c53550..7e6b5f0 100644 --- a/www/data/ratings_per_year.json +++ b/www/data/ratings_per_year.json @@ -192,7 +192,7 @@ { "year": 2022, "rating": 1, - "count": 1 + "count": 2 }, { "year": 2022, @@ -202,11 +202,11 @@ { "year": 2022, "rating": 4, - "count": 5 + "count": 12 }, { "year": 2022, "rating": 5, - "count": 86 + "count": 142 } ] \ No newline at end of file diff --git a/www/data/returning_members.json b/www/data/returning_members.json index fde5ea9..f11aba6 100644 --- a/www/data/returning_members.json +++ b/www/data/returning_members.json @@ -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 } \ No newline at end of file diff --git a/www/data/student_to_coach_conversion.json b/www/data/student_to_coach_conversion.json index 5a60fab..45489d1 100644 --- a/www/data/student_to_coach_conversion.json +++ b/www/data/student_to_coach_conversion.json @@ -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 } \ No newline at end of file diff --git a/www/data/workshops_per_year.json b/www/data/workshops_per_year.json index 7433592..8030801 100644 --- a/www/data/workshops_per_year.json +++ b/www/data/workshops_per_year.json @@ -36,7 +36,7 @@ "year": 2021 }, { - "count": 109, + "count": 150, "year": 2022 } ] \ No newline at end of file