Make hierarchical criterion depth input optional (#1733)

This commit is contained in:
WithoutPants
2021-09-16 20:41:07 +10:00
committed by GitHub
parent e0c910d9e8
commit 501ed7c2c2
11 changed files with 33 additions and 56 deletions

View File

@@ -22,7 +22,6 @@ func CountByStudioID(r models.ImageReader, id int) (int, error) {
Studios: &models.HierarchicalMultiCriterionInput{
Value: []string{strconv.Itoa(id)},
Modifier: models.CriterionModifierIncludes,
Depth: 0,
},
}
@@ -34,7 +33,6 @@ func CountByTagID(r models.ImageReader, id int) (int, error) {
Tags: &models.HierarchicalMultiCriterionInput{
Value: []string{strconv.Itoa(id)},
Modifier: models.CriterionModifierIncludes,
Depth: 0,
},
}