From bf971867834cf80778222b1b4f66c9ad6018ea64 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Fri, 12 Jul 2013 13:01:19 -0400 Subject: [PATCH] whitespacebot --- .../courses/management/commands/import_usde_csv.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/karmaworld/apps/courses/management/commands/import_usde_csv.py b/karmaworld/apps/courses/management/commands/import_usde_csv.py index 47a0ea0..8422624 100644 --- a/karmaworld/apps/courses/management/commands/import_usde_csv.py +++ b/karmaworld/apps/courses/management/commands/import_usde_csv.py @@ -4,11 +4,11 @@ from itertools import izip from django.core.management.base import BaseCommand from karmaworld.apps.courses.models import School - + class Command(BaseCommand): args = '' - help = ("""Import USDE csv file. add schools to the UsdeSchool model. - Assumes the following header: + help = ("""Import USDE csv file. add schools to the UsdeSchool model. + Assumes the following header: Institution_ID,Institution_Name,Institution_Address,Institution_City,Institution_State,Institution_Zip,Institution_Phone,Institution_OPEID,Institution_IPEDS_UnitID,Institution_Web_Address,Campus_ID,Campus_Name,Campus_Address,Campus_City,Campus_State,Campus_Zip,Campus_IPEDS_UnitID,Accreditation_Type,Agency_Name,Agency_Status,Program_Name,Accreditation_Status,Accreditation_Date_Type,Periods,Last Action""" ) @@ -31,7 +31,7 @@ class Command(BaseCommand): def handle(self, *args, **kwargs): - if len(args) < 1: + if len(args) < 1: self.stdout.write('Provide a filename\n') return @@ -49,7 +49,7 @@ class Command(BaseCommand): print d raise Exception('Error: School does not have an institution_id!') - try: + try: school = School.objects.get(usde_id=d['institution_id']) except School.DoesNotExist: -- 2.25.1