Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #238 from cmptrgeekken/assets-flat-flag
Browse files Browse the repository at this point in the history
Adds `flat` flag to corp and char Assets API call
  • Loading branch information
ayust authored Feb 9, 2017
2 parents 9720194 + b76e7c1 commit ba1e65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions evelink/char.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def __init__(self, char_id, api):
self.api = api
self.char_id = char_id

@auto_call('char/AssetList')
def assets(self, api_result=None):
@auto_call('char/AssetList', map_params={'flat': 'flat'})
def assets(self, api_result=None, flat=None):
"""Get information about corp assets.
Each item is a dict, with keys 'id', 'item_type_id',
Expand Down
4 changes: 2 additions & 2 deletions evelink/corp.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def orders(self, api_result=None):
"""Return a corporation's buy and sell orders."""
return api.APIResult(parse_market_orders(api_result.result), api_result.timestamp, api_result.expires)

@api.auto_call('corp/AssetList')
def assets(self, api_result=None):
@api.auto_call('corp/AssetList', map_params={'flat': 'flat'})
def assets(self, api_result=None, flat=None):
"""Get information about corp assets.
Each item is a dict, with keys 'id', 'item_type_id',
Expand Down

0 comments on commit ba1e65c

Please sign in to comment.