mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Various bug fixes (#2945)
* Only update fingerprints if changed * Fix panic when loading primary file fails * Fix gallery/scene association * Fix display of scene gallery in card * Use natural_cs collation with paths for title sorting
This commit is contained in:
@@ -65,7 +65,7 @@ func getSort(sort string, direction string, tableName string) string {
|
||||
return " ORDER BY COUNT(distinct " + colName + ") " + direction
|
||||
case strings.Compare(sort, "filesize") == 0:
|
||||
colName := getColumn(tableName, "size")
|
||||
return " ORDER BY cast(" + colName + " as integer) " + direction
|
||||
return " ORDER BY " + colName + " " + direction
|
||||
case strings.HasPrefix(sort, randomSeedPrefix):
|
||||
// seed as a parameter from the UI
|
||||
// turn the provided seed into a float
|
||||
|
||||
Reference in New Issue
Block a user