Skip to content

Commit 5036d5e

Browse files
committed
fix join logic that removes volgistic people with no shifts
1 parent 6b59d9c commit 5036d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/api/API_ingest/updated_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_updated_contact_data():
3434
min(from_date) first_volunteer_date, max(from_date) last_shift_date
3535
from volgistics v
3636
left join volgisticsshifts v2 on v2.volg_id::varchar = v.number
37-
inner join pdp_contacts pc on pc.source_id = v2.volg_id::varchar and pc.source_type = 'volgistics'
37+
inner join pdp_contacts pc on pc.source_id = v.number::varchar and pc.source_type = 'volgistics'
3838
group by matching_id
3939
) volgistics on volgistics.matching_id = salesforce.matching_id
4040
left join (

0 commit comments

Comments
 (0)