From b9902d124b60619efa2fa8e1e2d72a2258288b60 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 4 Nov 2010 12:50:40 +0000 Subject: [PATCH] Fix the roles import to use id not roleid --- eve_api/api_puller/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eve_api/api_puller/accounts.py b/eve_api/api_puller/accounts.py index 7a4b725..277dfc0 100755 --- a/eve_api/api_puller/accounts.py +++ b/eve_api/api_puller/accounts.py @@ -176,7 +176,7 @@ def import_eve_character(api_key, user_id, character_id): roles = values.get('corporationRoles', None) if roles and len(roles): for r in roles: - role, created = EVEPlayerCharacterRole.objects.get_or_create(roleid=r['roleID'], name=r['roleName']) + role, created = EVEPlayerCharacterRole.objects.get_or_create(id=r['roleID'], name=r['roleName']) pchar.roles.add(role) if r['roleName'] == 'roleDirector': pchar.director = True