mirror of
https://github.com/stashapp/stash.git
synced 2025-12-14 20:33:16 +01:00
Merge branch 'fixes' into develop
This commit is contained in:
commit
aeac58b65c
4 changed files with 65 additions and 59 deletions
File diff suppressed because one or more lines are too long
|
|
@ -98,7 +98,7 @@ func (g *Gallery) listZipContents() ([]*zip.File, *zip.ReadCloser, error) {
|
|||
continue
|
||||
}
|
||||
ext := filepath.Ext(file.Name)
|
||||
if ext != ".jpg" && ext != ".png" && ext != ".gif" {
|
||||
if ext != ".jpg" && ext != ".jpeg" && ext != ".png" && ext != ".gif" {
|
||||
continue
|
||||
}
|
||||
if strings.Contains(file.Name, "__MACOSX") {
|
||||
|
|
|
|||
|
|
@ -198,7 +198,12 @@ func (qb *SceneMarkerQueryBuilder) Query(sceneMarkerFilter *SceneMarkerFilterTyp
|
|||
func (qb *SceneMarkerQueryBuilder) getSceneMarkerSort(findFilter *FindFilterType) string {
|
||||
sort := findFilter.GetSort("title")
|
||||
direction := findFilter.GetDirection()
|
||||
return getSort(sort, direction, "scene_markers")
|
||||
tableName := "scene_markers"
|
||||
if sort == "scenes_updated_at" {
|
||||
sort = "updated_at"
|
||||
tableName = "scene"
|
||||
}
|
||||
return getSort(sort, direction, tableName)
|
||||
}
|
||||
|
||||
func (qb *SceneMarkerQueryBuilder) querySceneMarkers(query string, args []interface{}, tx *sqlx.Tx) ([]SceneMarker, error) {
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ export class ListFilterModel {
|
|||
break;
|
||||
}
|
||||
if (!!this.displayMode === false) { this.displayMode = this.displayModeOptions[0]; }
|
||||
this.sortByOptions = [...this.sortByOptions, "created_at", "updated_at"];
|
||||
}
|
||||
|
||||
public configureFromQueryParameters(rawParms: any) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue