Skip to content

Commit

Permalink
Merge pull request #14 from uw-it-aca/png-updates
Browse files Browse the repository at this point in the history
tweaking png json
  • Loading branch information
devights authored Nov 3, 2020
2 parents c849739 + 156a3f3 commit ba2ced3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions uw_adsel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Application(models.Model):
major_program_code = models.CharField(max_length=255)

def json_data(self):
return {'admissionSelectionId': self.adsel_id,
return {'admissionSelectionId': int(self.adsel_id),
'applicationNbr': self.application_number,
'systemKey': self.system_key}

Expand All @@ -66,9 +66,7 @@ class PurpleGoldApplication(Application):
award_amount = models.IntegerField()

def json_data(self):
return {'admissionSelectionId': self.adsel_id,
'applicationNbr': self.application_number,
'systemKey': self.system_key,
return {'admissionSelectionId': int(self.adsel_id),
'awardAmount': self.award_amount}


Expand Down Expand Up @@ -127,7 +125,6 @@ def json_data(self):
return {'applicants': applicant_json,
'assignmentDetail': {'assignmentType': self.assignment_type,
'academicQtrKeyId': self.quarter,
'campus': self.campus,
'comments': self.comments,
'decisionImportUser': self.user}
}

0 comments on commit ba2ced3

Please sign in to comment.