mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Organised flag (#988)
* Add organized boolean to scene model (#729) * Add organized button to scene page * Add flag to galleries and images * Import/export changes * Make organized flag not null * Ignore organized scenes for autotag Co-authored-by: com1234 <com1234@notarealemail.com>
This commit is contained in:
@@ -47,6 +47,7 @@ const (
|
||||
date = "2001-01-01"
|
||||
rating = 5
|
||||
ocounter = 2
|
||||
organized = true
|
||||
details = "details"
|
||||
size = "size"
|
||||
duration = 1.23
|
||||
@@ -113,6 +114,7 @@ func createFullScene(id int) models.Scene {
|
||||
OCounter: ocounter,
|
||||
OSHash: modelstest.NullString(oshash),
|
||||
Rating: modelstest.NullInt64(rating),
|
||||
Organized: organized,
|
||||
Size: modelstest.NullString(size),
|
||||
VideoCodec: modelstest.NullString(videoCodec),
|
||||
Width: modelstest.NullInt64(width),
|
||||
@@ -140,14 +142,15 @@ func createEmptyScene(id int) models.Scene {
|
||||
|
||||
func createFullJSONScene(image string) *jsonschema.Scene {
|
||||
return &jsonschema.Scene{
|
||||
Title: title,
|
||||
Checksum: checksum,
|
||||
Date: date,
|
||||
Details: details,
|
||||
OCounter: ocounter,
|
||||
OSHash: oshash,
|
||||
Rating: rating,
|
||||
URL: url,
|
||||
Title: title,
|
||||
Checksum: checksum,
|
||||
Date: date,
|
||||
Details: details,
|
||||
OCounter: ocounter,
|
||||
OSHash: oshash,
|
||||
Rating: rating,
|
||||
Organized: organized,
|
||||
URL: url,
|
||||
File: &jsonschema.SceneFile{
|
||||
AudioCodec: audioCodec,
|
||||
Bitrate: bitrate,
|
||||
|
||||
Reference in New Issue
Block a user