Skip to content

Commit

Permalink
strict typing
Browse files Browse the repository at this point in the history
  • Loading branch information
devights committed Nov 13, 2020
1 parent 156a3f3 commit 9b5069e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions uw_adsel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Application(models.Model):
def json_data(self):
return {'admissionSelectionId': int(self.adsel_id),
'applicationNbr': self.application_number,
'systemKey': self.system_key}
'systemKey': int(self.system_key)}


class PurpleGoldApplication(Application):
Expand Down Expand Up @@ -89,12 +89,12 @@ def json_data(self):
for application in self.applicants:
applicant_json.append(application.json_data())
return {'applicants': applicant_json,
'cohortNbr': self.cohort_number,
'cohortNbr': int(self.cohort_number),
'overridePreviousCohort': self.override_previous,
'overridePreviousProtectedCohort': self.override_protected,
'assignmentDetail': {'assignmentType': self.assignment_type,
'academicQtrKeyId': self.quarter,
'campus': self.campus,
'campus': int(self.campus),
'comments': self.comments,
'decisionImportUser': self.user}
}
Expand All @@ -111,7 +111,7 @@ def json_data(self):
'majorProgramCode': self.major_code,
'assignmentDetail': {'assignmentType': self.assignment_type,
'academicQtrKeyId': self.quarter,
'campus': self.campus,
'campus': int(self.campus),
'comments': self.comments,
'decisionImportUser': self.user}
}
Expand Down

0 comments on commit 9b5069e

Please sign in to comment.