Minor fix

This commit is contained in:
Eduard Urbach 2018-11-13 19:13:30 +09:00
parent 1f031105cb
commit d11f17bc17

View File

@ -107,6 +107,10 @@ func syncCharacter(character *arn.Character, malID string) {
allowUpdating := character.CreatedBy == "" && character.EditedBy == "" allowUpdating := character.CreatedBy == "" && character.EditedBy == ""
description, attributes := parseCharacterDescription(malCharacter.Description) description, attributes := parseCharacterDescription(malCharacter.Description)
if strings.Contains(character.Description, "No biography written.") {
character.Description = ""
}
if (allowUpdating || character.Description == "") && description != "" { if (allowUpdating || character.Description == "") && description != "" {
character.Description = description character.Description = description
} }