mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-08 08:06:20 +01:00
Merged with R4stl1n master
Had to resolve a small conflict in email. Replaced mine with upstream.
This commit is contained in:
@@ -140,10 +140,10 @@ class EveApiManager():
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def get_alliance_standings():
|
||||
if settings.ALLIANCE_EXEC_CORP_ID != "":
|
||||
def get_corp_standings():
|
||||
if settings.CORP_API_ID != "":
|
||||
try:
|
||||
api = evelink.api.API(api_key=(settings.ALLIANCE_EXEC_CORP_ID, settings.ALLIANCE_EXEC_CORP_VCODE))
|
||||
api = evelink.api.API(api_key=(settings.CORP_API_ID, settings.CORP_API_VCODE))
|
||||
corp = evelink.corp.Corp(api=api)
|
||||
corpinfo = corp.contacts()
|
||||
results = corpinfo[0]
|
||||
@@ -178,4 +178,4 @@ class EveApiManager():
|
||||
except evelink.api.APIError as error:
|
||||
return False
|
||||
|
||||
return False
|
||||
return False
|
||||
|
||||
@@ -138,7 +138,7 @@ class Teamspeak3Manager:
|
||||
|
||||
server_groups = Teamspeak3Manager._group_list()
|
||||
|
||||
if not settings.DEFAULT_ALLIANCE_GROUP in server_groups:
|
||||
if not settings.DEFAULT_AUTH_GROUP in server_groups:
|
||||
Teamspeak3Manager._create_group(settings.DEFAULT_ALLIANCE_GROUP)
|
||||
|
||||
alliance_group_id = Teamspeak3Manager._group_id_by_name(settings.DEFAULT_ALLIANCE_GROUP)
|
||||
|
||||
Reference in New Issue
Block a user