Skip to content

Commit

Permalink
Fix inaccurate face count
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Jul 24, 2023
1 parent a8067b0 commit 721c1c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/views/faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ class FaceIncompleteListViewSet(ListViewSet):

def get_queryset(self):
inferred = False
personid = self.request.query_params.get("person")
conditional_filter = Q(faces__person_label_is_inferred=inferred) | Q(
faces__person__name=Person.UNKNOWN_PERSON_NAME
)
) & Q(faces__person=personid)
if (
self.request.query_params.get("inferred")
and self.request.query_params.get("inferred").lower() == "true"
Expand Down

0 comments on commit 721c1c1

Please sign in to comment.