Fix a few asumptions not fixed in the last commit

This commit is contained in:
2011-05-19 16:13:17 +01:00
parent d1afc15fc0
commit fe95eb2d21
3 changed files with 4 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo
# Create or retrieve the account last to make sure everything
# before here is good to go.
account, created = EVEAccount.objects.get_or_create(api_user_id=api_userid, api_user_id=api_userid)
account, created = EVEAccount.objects.get_or_create(api_key=api_key, api_user_id=api_userid)
account.api_key = api_key
account.api_status = API_STATUS_OK
if user and created: