mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 15:00:16 +02:00
Fixes a discrepancy between corp and alliance mode, causing all characters to appear double in corporation mode.
This commit is contained in:
parent
b73fb4bf5a
commit
23eec8e9a5
@ -108,8 +108,8 @@ def corp_member_view(request, corpid = None):
|
|||||||
characters_without_api.update({member_data["name"]: member_data["id"]})
|
characters_without_api.update({member_data["name"]: member_data["id"]})
|
||||||
|
|
||||||
for char in EveCharacter.objects.filter(corporation_id=corpid):
|
for char in EveCharacter.objects.filter(corporation_id=corpid):
|
||||||
if not char.character_id in member_list:
|
if not int(char.character_id) in member_list:
|
||||||
logger.info("Character %s does not exist in EveWho dump." % char.character_name)
|
logger.info("Character '%s' does not exist in EveWho dump." % char.character_name)
|
||||||
char_owner = char.user
|
char_owner = char.user
|
||||||
try:
|
try:
|
||||||
mainid = int(AuthServicesInfoManager.get_auth_service_info(user=char_owner).main_char_id)
|
mainid = int(AuthServicesInfoManager.get_auth_service_info(user=char_owner).main_char_id)
|
||||||
|
@ -21,7 +21,7 @@ class EveWhoManager():
|
|||||||
page_count=0
|
page_count=0
|
||||||
while len(data["characters"]):
|
while len(data["characters"]):
|
||||||
for row in data["characters"]:
|
for row in data["characters"]:
|
||||||
members[row["character_id"]] = {"name":row["name"], "id":row["character_id"]}
|
members[int(row["character_id"])] = {"name":row["name"], "id":int(row["character_id"])}
|
||||||
page_count=page_count+1
|
page_count=page_count+1
|
||||||
jsondata = requests.get(url + "&page=%i" % page_count).content
|
jsondata = requests.get(url + "&page=%i" % page_count).content
|
||||||
data = json.loads(jsondata.decode())
|
data = json.loads(jsondata.decode())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user