Skip to content

Commit

Permalink
Merge branch 'hotfix/esi-compat'
Browse files Browse the repository at this point in the history
  • Loading branch information
Henjuro committed Mar 12, 2018
2 parents b305b5b + f21021e commit 1f1b8e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion waitlist/utility/swagger/eve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def get_esi_client_for_account(account: Account, noauth: bool = False) -> EsiCli
return EsiClient(timeout=10, headers={'User-Agent': 'Bruce Warhead IncWaitlist/'+version})

security = EsiSecurity(
get_api(),
crest_return_url,
crest_client_id,
crest_client_secret
Expand Down
5 changes: 3 additions & 2 deletions waitlist/utility/swagger/eve/fleet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from pyswagger import App

from waitlist.utility.swagger import get_api
from waitlist.utility.swagger.eve import get_esi_client, ESIResponse, \
get_expire_time, make_error_response
from waitlist.utility.swagger.eve.fleet.responses import EveFleet, EveFleetWings, \
Expand All @@ -18,10 +19,10 @@ def __init__(self, fleet_id: int, client: EsiClient = None) -> None:
self.__fleetID: int = fleet_id
if client is None:
self.__client: EsiClient = get_esi_client()
self.__api: App = self.__client.security.app
self.__api: App = get_api()
else:
self.__client: EsiClient = client
self.__api: App = self.__client.security.app
self.__api: App = get_api()

def get_member(self) -> ESIResponse:
response = self.__client.request(self.__api.op['get_fleets_fleet_id_members'](fleet_id=self.__fleetID))
Expand Down
1 change: 1 addition & 0 deletions waitlist/utility/swagger/evemail.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def open_mail(recipients: Sequence[int], body: str, subject: str, to_corp_or_all
payload['recipients'] = [0]

client = get_esi_client()
app = get_api()
response = client.request(client.security.app.op['post_ui_openwindow_newmail'](new_mail=payload))
if response.status == 204:
return ESIResponse(get_expire_time(response), response.status, None)
Expand Down

0 comments on commit 1f1b8e9

Please sign in to comment.