1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

Handle Limpets

This commit is contained in:
Jonathan Harris 2018-12-28 02:15:34 +00:00
parent 16f989ac12
commit 5fac03203a

View File

@ -40,7 +40,7 @@ def addcommodities(data):
'name' : commodity.get('locName') or 'Limpets',
}
old = commodities.get(key)
if old:
if old and companion.category_map.get(commodity['categoryname'], True):
if new['symbol'] != old['symbol'] or new['name'] != old['name']:
raise AssertionError('%s: "%s"!="%s"' % (key, new, old))
commodities[key] = new