mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix SQL error in 8K resolution filter (#1159)
This commit is contained in:
@@ -297,7 +297,7 @@ func (qb *imageQueryBuilder) Query(imageFilter *models.ImageFilterType, findFilt
|
|||||||
case "SIX_K":
|
case "SIX_K":
|
||||||
query.addWhere("(MIN(images.height, images.width) >= 3384 AND MIN(images.height, images.width) < 4320)")
|
query.addWhere("(MIN(images.height, images.width) >= 3384 AND MIN(images.height, images.width) < 4320)")
|
||||||
case "EIGHT_K":
|
case "EIGHT_K":
|
||||||
query.addWhere("(MIN(images.height, images.width) >= 4320")
|
query.addWhere("MIN(images.height, images.width) >= 4320")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ func (qb *sceneQueryBuilder) Query(sceneFilter *models.SceneFilterType, findFilt
|
|||||||
case "SIX_K":
|
case "SIX_K":
|
||||||
query.addWhere("(MIN(scenes.height, scenes.width) >= 3384 AND MIN(scenes.height, scenes.width) < 4320)")
|
query.addWhere("(MIN(scenes.height, scenes.width) >= 3384 AND MIN(scenes.height, scenes.width) < 4320)")
|
||||||
case "EIGHT_K":
|
case "EIGHT_K":
|
||||||
query.addWhere("(MIN(scenes.height, scenes.width) >= 4320")
|
query.addWhere("MIN(scenes.height, scenes.width) >= 4320")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user