Skip to content

Commit

Permalink
Updated item handling for upcoming ED 2.4 cAPI changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgol committed Sep 22, 2017
1 parent 1f69fd1 commit 262bc72
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Sep 22 2017 (bgol, horizon branch):
. Updated EDAPI plugin to version 4.3.0
- Added "/market" and "/shipyard" check from cAPI.
- Get station data from the new "services" entry if available.
- Updated item handling for upcoming ED 2.4 cAPI changes.

Jul 03 2017 (bgol, horizon branch):
. Updated EDAPI plugin to version 4.2.0
Expand Down
8 changes: 7 additions & 1 deletion plugins/edapi_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,13 @@ def run(self):
for commodity in api.profile['lastStarport']['commodities']:
if commodity['categoryname'] in cat_ignore:
continue
itmName = itemMap.mapID(commodity['id'], commodity['name'])

if commodity.get('legality', '') != '':
# ignore if present and not empty
continue

locName = commodity.get('locName', commodity['name'])
itmName = itemMap.mapID(commodity['id'], locName)

def commodity_int(key):
try:
Expand Down

0 comments on commit 262bc72

Please sign in to comment.