mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-11-06 22:12:45 +00:00
Dont show Alt characters as a main when they are not in corp
This commit is contained in:
1 parent
337c4d9ce5
commit
80157a032a
1 file changed
+4
-3
@@ -108,10 +108,11 @@ def corpstats_view(request, corp_id=None):
|
||||
try:
|
||||
main = char.character_ownership.user.profile.main_character
|
||||
if main is not None:
|
||||
if main.character_id not in mains:
|
||||
mains[main.character_id] = {'main':main, 'alts':[]}
|
||||
if main.corporation_id == corpstats.corp.corporation_id:
|
||||
if main.character_id not in mains:
|
||||
mains[main.character_id] = {'main':main, 'alts':[]}
|
||||
|
||||
mains[main.character_id]['alts'].append(char)
|
||||
mains[main.character_id]['alts'].append(char)
|
||||
|
||||
if char.corporation_id == corpstats.corp.corporation_id:
|
||||
members.append(char)
|
||||
|
||||
Reference in new issue
Block a user