Переглянути джерело

sell: ignore blocked items

raylu 2 тижнів тому
батько
коміт
2269b3de40
1 змінених файлів з 1 додано та 1 видалено
  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=' ')