Search: Reduce chroma threshold for mono filter to 0 #596

This commit is contained in:
Michael Mayer 2020-12-19 01:56:00 +01:00
parent 5f94f023ef
commit 7b5ae77e61

View file

@ -280,7 +280,7 @@ func PhotoSearch(f form.PhotoSearch) (results PhotoResults, count int, err error
}
if f.Mono {
s = s.Where("files.file_chroma < 2 OR file_colors = '111111111'")
s = s.Where("files.file_chroma = 0 OR file_colors = '111111111'")
} else if f.Chroma > 9 {
s = s.Where("files.file_chroma > ?", f.Chroma)
} else if f.Chroma > 0 {