Skip to content

Commit

Permalink
Fix bug when viewing face
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Jun 20, 2023
1 parent eb4e67b commit b807d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/serializers/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Meta:

def get_face_url(self, obj) -> str:
if obj.cover_photo:
return obj.cover_photo.faces.first().image.name
return "/media/" + obj.cover_photo.faces.first().image.name
return "/media/" + obj.faces.first().image.name

def get_face_photo_url(self, obj) -> str:
Expand Down

0 comments on commit b807d56

Please sign in to comment.