Fixed outdated parser

This commit is contained in:
Eduard Urbach 2019-05-27 18:12:57 +09:00
parent da3c064496
commit ae591e5e7e
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -21,9 +21,6 @@ func main() {
for kitsuCharacter := range kitsuCharacters { for kitsuCharacter := range kitsuCharacters {
character := &arn.Character{ character := &arn.Character{
HasID: arn.HasID{
ID: kitsuCharacter.ID,
},
Name: arn.CharacterName{ Name: arn.CharacterName{
Canonical: kitsuCharacter.Attributes.CanonicalName, Canonical: kitsuCharacter.Attributes.CanonicalName,
English: kitsuCharacter.Attributes.Names.En, English: kitsuCharacter.Attributes.Names.En,
@ -35,13 +32,13 @@ func main() {
}, },
Description: kitsuCharacter.Attributes.Description, Description: kitsuCharacter.Attributes.Description,
Attributes: []*arn.CharacterAttribute{}, Attributes: []*arn.CharacterAttribute{},
HasMappings: arn.HasMappings{ }
Mappings: []*arn.Mapping{
{ character.ID = kitsuCharacter.ID
Service: "kitsu/character", character.Mappings = []*arn.Mapping{
ServiceID: kitsuCharacter.ID, {
}, Service: "kitsu/character",
}, ServiceID: kitsuCharacter.ID,
}, },
} }