|
@@ -82,8 +82,10 @@ def get_total_buy(days: int) -> typing.Mapping[str, int]:
|
|
|
headers={'Authorization': config.fio_api_key})]
|
|
headers={'Authorization': config.fio_api_key})]
|
|
|
buy: dict[str, int] = collections.defaultdict(int)
|
|
buy: dict[str, int] = collections.defaultdict(int)
|
|
|
for planet in planets:
|
|
for planet in planets:
|
|
|
|
|
+ supply_config = config.supply_config(planet.name)
|
|
|
for mat, amount in planet.supply_for_days(days).items():
|
|
for mat, amount in planet.supply_for_days(days).items():
|
|
|
- buy[mat] += amount
|
|
|
|
|
|
|
+ if mat not in supply_config.ignore_materials:
|
|
|
|
|
+ buy[mat] += amount
|
|
|
return buy
|
|
return buy
|
|
|
|
|
|
|
|
def get_planet_exports_and_ship_storage() -> typing.Mapping[str, int]:
|
|
def get_planet_exports_and_ship_storage() -> typing.Mapping[str, int]:
|