diff --git a/services/managers/eve_api_manager.py b/services/managers/eve_api_manager.py index 1f17bd73..dd47db80 100644 --- a/services/managers/eve_api_manager.py +++ b/services/managers/eve_api_manager.py @@ -286,11 +286,11 @@ class EveApiManager(): @staticmethod def validate_member_api(api_id, api_key): if settings.MEMBER_API_ACCOUNT: - if EveApiManager.check_api_is_type_account(api_id, api_key) is not True: + if EveApiManager.check_api_is_type_account(api_id, api_key) is False: logger.info("Api id %s is not type account as required for members - failed validation." % api_id) return False - if EveApiManager.check_api_is_full(api_id, api_key) is not True: + if EveApiManager.check_api_is_full(api_id, api_key) is False: logger.info("Api id %s does not meet member access mask requirements - failed validation." % api_id) return False return True @@ -298,10 +298,10 @@ class EveApiManager(): @staticmethod def validate_blue_api(api_id, api_key): if settings.BLUE_API_ACCOUNT: - if EveApiManager.check_api_is_type_account(api_id, api_key) is not True: + if EveApiManager.check_api_is_type_account(api_id, api_key) is False: logger.info("Api id %s is not type account as required for blues - failed validation." % api_id) return False - if EveApiManager.check_blue_api_is_full(api_id, api_key) is not True: + if EveApiManager.check_blue_api_is_full(api_id, api_key) is False: logger.info("Api id %s does not meet minimum blue access mask requirements - failed validation." % api_id) return False return True