From 395c2c1becca781519a6a1fef2f67422fe7a5295 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 5 Jan 2017 00:43:52 -0500 Subject: [PATCH] Correct ID type mismatch on API key refresh. --- authentication/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentication/tasks.py b/authentication/tasks.py index 1026e147..7263ca7a 100644 --- a/authentication/tasks.py +++ b/authentication/tasks.py @@ -63,10 +63,10 @@ def make_blue(auth): def determine_membership_by_character(char): - if char.corporation_id in settings.STR_CORP_IDS: + if str(char.corporation_id) in settings.STR_CORP_IDS: logger.debug("Character %s in member corp id %s" % (char, char.corporation_id)) return MEMBER_STATE - elif char.alliance_id in settings.STR_ALLIANCE_IDS: + elif str(char.alliance_id) in settings.STR_ALLIANCE_IDS: logger.debug("Character %s in member alliance id %s" % (char, char.alliance_id)) return MEMBER_STATE elif not EveCorporationInfo.objects.filter(corporation_id=char.corporation_id).exists():