Image improvements (#847)

* Fix image performer filtering
* Add performer images tab
* Add studio images tab
* Rename interface
* Add tag images tab
* Add path filtering for images
* Show image stats on stats page
* Fix incorrect scan counts after timeout
* Add gallery filters
* Relax scene gallery selector
This commit is contained in:
WithoutPants
2020-10-20 10:11:15 +11:00
committed by GitHub
parent 80199f79f3
commit 8eda72ad89
31 changed files with 463 additions and 169 deletions

View File

@@ -7,7 +7,6 @@ import (
"github.com/jmoiron/sqlx"
"github.com/stashapp/stash/pkg/database"
"github.com/stashapp/stash/pkg/utils"
)
const sceneTable = "scenes"
@@ -242,12 +241,8 @@ func (qb *SceneQueryBuilder) Count() (int, error) {
return runCountQuery(buildCountQuery("SELECT scenes.id FROM scenes"), nil)
}
func (qb *SceneQueryBuilder) SizeCount() (string, error) {
sum, err := runSumQuery("SELECT SUM(size) as sum FROM scenes", nil)
if err != nil {
return "0 B", err
}
return utils.HumanizeBytes(sum), err
func (qb *SceneQueryBuilder) Size() (uint64, error) {
return runSumQuery("SELECT SUM(size) as sum FROM scenes", nil)
}
func (qb *SceneQueryBuilder) CountByStudioID(studioID int) (int, error) {