Skip to content

Commit f19fb99

Browse files
committed
fix regional partner mapping for non csf_workshop section wkshops [ci skip]
1 parent 4484e83 commit f19fb99

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

aws/redshift/tables/csf_workshop_attendance.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ UNION ALL
140140
0 as not_attended
141141
FROM dashboard_production.followers f
142142
JOIN dashboard_production.sections se
143-
ON se.id = f.section_id AND se.section_type = 'csf_workshop'
143+
ON se.id = f.section_id
144144
JOIN analysis.training_school_years sy ON se.created_at BETWEEN sy.started_at AND sy.ended_at
145145
JOIN section_state_zip ssz
146146
ON ssz.id = se.id

aws/redshift/tables/regional_partner_stats_csf.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ csf_teachers_trained_temp as
2121
(
2222
select distinct
2323
user_id, -- multiple entries per person (if they attended multiple workshops)
24-
u.studio_p erson_id,
24+
u.studio_person_id,
2525
'CS Fundamentals'::varchar as course,
2626
school_year as school_year,
2727
regional_partner as regional_partner,
@@ -90,7 +90,6 @@ pd_facilitators as
9090
JOIN dashboard_production_pii.users u2
9191
ON pwf.user_id = u2.id
9292
group by 1
93-
9493
)
9594
SELECT distinct
9695
d.user_id,

0 commit comments

Comments
 (0)