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

Suppress not normally traded commodities e.g. Salvage

This commit is contained in:
Jonathan Harris 2017-10-08 20:09:10 +01:00
parent d0a8b0476b
commit 1717782886

View File

@ -311,7 +311,9 @@ def fixup(data):
if __debug__: print 'Invalid "%s":"%s" (%s) for "%s"' % (thing, commodity.get(thing), type(commodity.get(thing)), commodity.get('name', ''))
break
else:
if not category_map.get(commodity['categoryname'], True): # Check marketable
if not category_map.get(commodity['categoryname'], True): # Check not marketable i.e. Limpets
pass
elif commodity['demandBracket'] == 0 and commodity['stockBracket'] == 0: # Check not normally stocked e.g. Salvage
pass
elif commodity.get('legality'): # Check not prohibited
pass