Improve studio/tag/performer filtering (#3619)

* Support excludes field
* Refactor studio filter
* Refactor tags filter
* Support excludes in tags
---------
Co-authored-by: Kermie <kermie@isinthe.house>
This commit is contained in:
WithoutPants
2023-05-25 12:03:49 +10:00
committed by GitHub
parent 45e61b9228
commit 62b6457f4e
30 changed files with 1105 additions and 117 deletions

View File

@@ -221,7 +221,7 @@ INNER JOIN (` + valuesClause + `) t ON t.column2 = m.primary_tag_id
f.addLeftJoin("marker_tags", "", "marker_tags.scene_marker_id = scene_markers.id")
addHierarchicalConditionClauses(f, tags, "marker_tags", "root_tag_id")
addHierarchicalConditionClauses(f, *tags, "marker_tags", "root_tag_id")
}
}
}
@@ -254,7 +254,7 @@ INNER JOIN (` + valuesClause + `) t ON t.column2 = st.tag_id
f.addLeftJoin("scene_tags", "", "scene_tags.scene_id = scene_markers.scene_id")
addHierarchicalConditionClauses(f, tags, "scene_tags", "root_tag_id")
addHierarchicalConditionClauses(f, *tags, "scene_tags", "root_tag_id")
}
}
}