From 171a4e799aededf58db6b19e3f033b17e6680402 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 25 May 2021 19:32:36 +0200 Subject: [PATCH] People: Change search filter behavior #22 --- internal/query/photo_search.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/query/photo_search.go b/internal/query/photo_search.go index 2b927cd63..1611f7222 100644 --- a/internal/query/photo_search.go +++ b/internal/query/photo_search.go @@ -215,9 +215,7 @@ func PhotoSearch(f form.PhotoSearch) (results PhotoResults, count int, err error // Number of faces if detected. if f.People < 0 { s = s.Where("photos.photo_people = 0") - } else if f.People == 1 { - s = s.Where("photos.photo_people = 1") - } else if f.People > 1 { + } else if f.People > 0 { s = s.Where("photos.photo_people >= ?", f.People) }