From 48dde0dca5f6b3fb1a7cf8f32e7e6c16c95b615b Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 21 Jan 2011 00:37:09 +0000 Subject: [PATCH] Update access when the key fails --- eve_api/tasks/account.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eve_api/tasks/account.py b/eve_api/tasks/account.py index 0049876..47239f2 100644 --- a/eve_api/tasks/account.py +++ b/eve_api/tasks/account.py @@ -96,6 +96,8 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo account.api_status = API_STATUS_OTHER_ERROR account.api_last_updated = datetime.utcnow() account.save() + if account.user: + update_user_access.delay(account.user.id) return account # Create or retrieve the account last to make sure everything