Add sort by scene code option (#5708)

This commit is contained in:
javstash 2025-03-16 20:23:51 -04:00 committed by GitHub
parent 4d61c88661
commit 6d451d52ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -1056,6 +1056,7 @@ func (qb *SceneStore) QueryCount(ctx context.Context, sceneFilter *models.SceneF
var sceneSortOptions = sortOptions{ var sceneSortOptions = sortOptions{
"bitrate", "bitrate",
"created_at", "created_at",
"code",
"date", "date",
"file_count", "file_count",
"filesize", "filesize",

View file

@ -65,6 +65,10 @@ const sortByOptions = [
messageID: "group_scene_number", messageID: "group_scene_number",
value: "group_scene_number", value: "group_scene_number",
}, },
{
messageID: "scene_code",
value: "code",
},
]); ]);
const displayModeOptions = [ const displayModeOptions = [
DisplayMode.Grid, DisplayMode.Grid,