Merge pull request #5 from R4stl1n/master

update
This commit is contained in:
Mr McClain 2016-02-06 13:11:15 -06:00
commit 9cd70cb82d
2 changed files with 5 additions and 5 deletions

View File

@ -287,11 +287,11 @@ class EveApiManager():
def validate_member_api(api_id, api_key): def validate_member_api(api_id, api_key):
if settings.MEMBER_API_ACCOUNT: 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 not True:
logger.debug("Api id %s is not type account as required for members - failed validation." % api_id) logger.info("Api id %s is not type account as required for members - failed validation." % api_id)
return False 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 not True:
logger.debug("Api id %s does not meet member access mask requirements - failed validation." % api_id) logger.info("Api id %s does not meet member access mask requirements - failed validation." % api_id)
return False return False
return True return True
@ -299,9 +299,9 @@ class EveApiManager():
def validate_blue_api(api_id, api_key): def validate_blue_api(api_id, api_key):
if settings.BLUE_API_ACCOUNT: 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 not True:
logger.debug("Api id %s is not type account as required for blues - failed validation." % api_id) logger.info("Api id %s is not type account as required for blues - failed validation." % api_id)
return False 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 not True:
logger.debug("Api id %s does not meet minimum blue access mask requirements - failed validation." % api_id) logger.info("Api id %s does not meet minimum blue access mask requirements - failed validation." % api_id)
return False return False
return True return True

View File

@ -47,7 +47,7 @@ class Phpbb3Manager:
@staticmethod @staticmethod
def __add_avatar(username, characterid): def __add_avatar(username, characterid):
logger.debug("Adding EVE character id %s portrait as phpbb avater for user %s" % (characterid, username)) logger.debug("Adding EVE character id %s portrait as phpbb avater for user %s" % (characterid, username))
avatar_url = "http://image.eveonline.com/Character/" + characterid + "_64.jpg" avatar_url = "https://image.eveonline.com/Character/" + characterid + "_64.jpg"
cursor = connections['phpbb3'].cursor() cursor = connections['phpbb3'].cursor()
userid = Phpbb3Manager.__get_user_id(username) userid = Phpbb3Manager.__get_user_id(username)
cursor.execute(Phpbb3Manager.SQL_ADD_USER_AVATAR, [avatar_url, userid]) cursor.execute(Phpbb3Manager.SQL_ADD_USER_AVATAR, [avatar_url, userid])