Update access when the key fails

This commit is contained in:
2011-01-21 00:37:09 +00:00
parent 1696ac0d43
commit 48dde0dca5

View File

@@ -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_status = API_STATUS_OTHER_ERROR
account.api_last_updated = datetime.utcnow() account.api_last_updated = datetime.utcnow()
account.save() account.save()
if account.user:
update_user_access.delay(account.user.id)
return account return account
# Create or retrieve the account last to make sure everything # Create or retrieve the account last to make sure everything