Przeglądaj źródła

sell: ignore blocked items

raylu 2 tygodni temu
rodzic
commit
2269b3de40
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      sell.py

+ 1 - 1
sell.py

@@ -25,7 +25,7 @@ def main() -> None:
 	to_sell: dict[str, int] = {}
 	price_limits: dict[str, int] = {}
 	for item in ship_inventory:
-		if item['Type'] == 'SHIPMENT':
+		if item['Type'] in ('SHIPMENT', 'BLOCKED'):
 			continue
 		ticker = item['MaterialTicker']
 		print(f'{item["MaterialAmount"]:5} {ticker:3}:', end=' ')