mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Show duration and filesize in results (#1776)
* Add new query interface * Refactor query builder * Change Query interface * Return duration and filesize in scene query * Adjust UI for scene metadata * Introduce new image query interface * Change image Query interface * Add megapixels and size to image query * Update image UI Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1b411e3f43
commit
4dd56c3d82
@@ -20,9 +20,9 @@ func selectAll(tableName string) string {
|
||||
return "SELECT " + idColumn + " FROM " + tableName + " "
|
||||
}
|
||||
|
||||
func selectDistinctIDs(tableName string) string {
|
||||
idColumn := getColumn(tableName, "id")
|
||||
return "SELECT DISTINCT " + idColumn + " FROM " + tableName + " "
|
||||
func distinctIDs(qb *queryBuilder, tableName string) {
|
||||
qb.addColumn("DISTINCT " + getColumn(tableName, "id"))
|
||||
qb.from = tableName
|
||||
}
|
||||
|
||||
func getColumn(tableName string, columnName string) string {
|
||||
|
||||
Reference in New Issue
Block a user