Fixed dashboard

This commit is contained in:
Stash Dev
2019-02-11 12:36:10 -08:00
parent 4f80decce4
commit 29a8f201e8
6 changed files with 37 additions and 13 deletions

View File

@@ -109,6 +109,10 @@ func (qb *sceneQueryBuilder) FindByStudioID(studioID int) ([]Scene, error) {
return qb.queryScenes(scenesForStudioQuery, args, nil)
}
func (qb *sceneQueryBuilder) Count() (int, error) {
return runCountQuery(buildCountQuery("SELECT scenes.id FROM scenes"), nil)
}
func (qb *sceneQueryBuilder) CountByStudioID(studioID int) (int, error) {
args := []interface{}{studioID}
return runCountQuery(buildCountQuery(scenesForStudioQuery), args)