From 1a127663a55b1c82f804ce3db2d5d4684457ae38 Mon Sep 17 00:00:00 2001 From: Ed Woodward Date: Wed, 20 Oct 2021 13:53:11 -0500 Subject: [PATCH] Changed schools to get enrollment from sf_schools in loop --- salesforce/management/commands/update_schools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salesforce/management/commands/update_schools.py b/salesforce/management/commands/update_schools.py index fc3a3645f..5250d8792 100644 --- a/salesforce/management/commands/update_schools.py +++ b/salesforce/management/commands/update_schools.py @@ -119,7 +119,7 @@ def handle(self, *args, **options): 'phone': sf_school['Phone'], 'website': sf_school['Website'], 'type': sf_school['Type'], - 'location': sf_district['School_Location__c'], + 'location': sf_school['School_Location__c'], 'key_institutional_partner': sf_school['K_I_P__c'], 'achieving_the_dream_school': sf_school['Achieving_the_Dream_School__c'], 'hbcu': sf_school['HBCU__c'], @@ -129,7 +129,7 @@ def handle(self, *args, **options): 'percent_students_pell_grant': sf_school['Students_Pell_Grant__c'], 'current_year_students': sf_school['Students_Current_Year__c'], 'all_time_students': sf_school['All_Time_Students2__c'], - 'total_school_enrollment': sf_district['Total_School_Enrollment__c'], + 'total_school_enrollment': sf_school['Total_School_Enrollment__c'], 'current_year_savings': sf_school['Savings_Current_Year__c'], 'all_time_savings': sf_school['All_Time_Savings2__c'], 'physical_country': sf_school['BillingCountry'],