Skip to content

Commit

Permalink
Merge pull request #400 from uw-it-aca/bug/student-adviser-vue
Browse files Browse the repository at this point in the history
fix photo_url attr
  • Loading branch information
jlaney committed Apr 10, 2024
2 parents e3ac5fb + 2f8dd93 commit b609cf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compass/views/api/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def get(self, request, identifier):
else:
return self.response_badrequest('Invalid student identifier')

person.photo_url = PhotoDAO().get_photo_url(person.uwregid)
return self.response_ok(person.to_dict())
person_dict = person.to_dict()
person_dict['photo_url'] = PhotoDAO().get_photo_url(person.uwregid)
return self.response_ok(person_dict)
except PersonNotFoundException:
return self.response_notfound()

Expand Down

0 comments on commit b609cf4

Please sign in to comment.