mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
Added alt support to corp stats
This commit is contained in:
parent
ea2b5ae819
commit
d0f40307e7
@ -47,6 +47,6 @@ Special Permissions In Admin:
|
|||||||
auth | user | human_resources ( Corp only access to view applications )
|
auth | user | human_resources ( Corp only access to view applications )
|
||||||
auth | user | jabber_broadcast ( Access to broadcast a message over jabber to specific groups or all)
|
auth | user | jabber_broadcast ( Access to broadcast a message over jabber to specific groups or all)
|
||||||
auth | user | blue_memeber ( Auto Added to people who register has a blue when adding api key)
|
auth | user | blue_memeber ( Auto Added to people who register has a blue when adding api key)
|
||||||
|
auth | user | corp_stats (View basic corp auth stats *who is authed etc*)
|
||||||
|
|
||||||
Brought to you by The 99 Percent skunkworks.
|
Brought to you by The 99 Percent skunkworks.
|
@ -141,15 +141,13 @@ def corp_stats_view(request):
|
|||||||
corp = EveCorporationInfo.objects.get(corporation_id=main_char.corporation_id)
|
corp = EveCorporationInfo.objects.get(corporation_id=main_char.corporation_id)
|
||||||
current_count = 0
|
current_count = 0
|
||||||
allcharacters = []
|
allcharacters = []
|
||||||
all_auth = AuthServicesInfo.objects.all()
|
all_characters = EveCharacter.objects.all()
|
||||||
for auth in all_auth:
|
for char in all_characters:
|
||||||
if auth.main_char_id != "":
|
if char:
|
||||||
try:
|
try:
|
||||||
user_char = EveCharacter.objects.get(character_id=auth.main_char_id)
|
if char.corporation_id == corp.corporation_id:
|
||||||
|
|
||||||
if user_char.corporation_id == corp.corporation_id:
|
|
||||||
current_count = current_count + 1
|
current_count = current_count + 1
|
||||||
allcharacters.append(user_char)
|
allcharacters.append(char)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user