People: Change search filter behavior #22
This commit is contained in:
parent
a6bf89d104
commit
171a4e799a
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue