From bb07455a52a1b7da12f5dc9123bb0b447335a67d Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 8 Nov 2010 13:33:12 +0000 Subject: [PATCH] Roll ofther required fields into the create statement --- eve_api/api_puller/accounts.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eve_api/api_puller/accounts.py b/eve_api/api_puller/accounts.py index 539a7ec..3793265 100755 --- a/eve_api/api_puller/accounts.py +++ b/eve_api/api_puller/accounts.py @@ -75,9 +75,7 @@ def import_eve_account(api_key, user_id, force_cache=False): # Create or retrieve the account last to make sure everything # before here is good to go. - account, created = EVEAccount.objects.get_or_create(id=user_id) - account.api_key = api_key - account.api_user_id = user_id + account, created = EVEAccount.objects.get_or_create(id=user_id, api_user_id=user_id, api_key=api_key) account.api_status = API_STATUS_OK account.save()