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 {
character := &arn.Character{
HasID: arn.HasID{
ID: kitsuCharacter.ID,
},
Name: arn.CharacterName{
Canonical: kitsuCharacter.Attributes.CanonicalName,
English: kitsuCharacter.Attributes.Names.En,
@ -35,14 +32,14 @@ func main() {
},
Description: kitsuCharacter.Attributes.Description,
Attributes: []*arn.CharacterAttribute{},
HasMappings: arn.HasMappings{
Mappings: []*arn.Mapping{
}
character.ID = kitsuCharacter.ID
character.Mappings = []*arn.Mapping{
{
Service: "kitsu/character",
ServiceID: kitsuCharacter.ID,
},
},
},
}
if kitsuCharacter.Attributes.MalID != 0 {