mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Added rating to performers and studios (#1308)
This commit is contained in:
@@ -224,6 +224,9 @@ func performerJSONToPerformer(performerJSON jsonschema.Performer) models.Perform
|
||||
if performerJSON.Instagram != "" {
|
||||
newPerformer.Instagram = sql.NullString{String: performerJSON.Instagram, Valid: true}
|
||||
}
|
||||
if performerJSON.Rating != 0 {
|
||||
newPerformer.Rating = sql.NullInt64{Int64: int64(performerJSON.Rating), Valid: true}
|
||||
}
|
||||
if performerJSON.Details != "" {
|
||||
newPerformer.Details = sql.NullString{String: performerJSON.Details, Valid: true}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user