mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Querybuilder integration tests (#513)
* Vet fixes * Change low resolution to < 480
This commit is contained in:
@@ -284,7 +284,7 @@ func (qb *SceneQueryBuilder) Query(sceneFilter *SceneFilterType, findFilter *Fin
|
||||
if resolution := resolutionFilter.String(); resolutionFilter.IsValid() {
|
||||
switch resolution {
|
||||
case "LOW":
|
||||
whereClauses = append(whereClauses, "(scenes.height >= 240 AND scenes.height < 480)")
|
||||
whereClauses = append(whereClauses, "scenes.height < 480")
|
||||
case "STANDARD":
|
||||
whereClauses = append(whereClauses, "(scenes.height >= 480 AND scenes.height < 720)")
|
||||
case "STANDARD_HD":
|
||||
@@ -293,8 +293,6 @@ func (qb *SceneQueryBuilder) Query(sceneFilter *SceneFilterType, findFilter *Fin
|
||||
whereClauses = append(whereClauses, "(scenes.height >= 1080 AND scenes.height < 2160)")
|
||||
case "FOUR_K":
|
||||
whereClauses = append(whereClauses, "scenes.height >= 2160")
|
||||
default:
|
||||
whereClauses = append(whereClauses, "scenes.height < 240")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user