Fixed access dictionary value

This commit is contained in:
Jeff 2020-04-07 21:56:27 -07:00 committed by GitHub
parent 0051f82b5f
commit b1dc00a305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,8 @@ subclass of ``relay.ClientIDMutation``.
@classmethod
def mutate_and_get_payload(cls, root, info, **input):
ship_name = input.ship_name
faction_id = input.faction_id
ship_name = input["ship_name"]
faction_id = input["faction_id"]
ship = create_ship(ship_name, faction_id)
faction = get_faction(faction_id)
return IntroduceShip(ship=ship, faction=faction)