1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

Revert is_horizons to modules: MAP_STR_ANY as it works

This commit is contained in:
Athanasius 2020-09-14 13:32:06 +01:00
parent d45070c249
commit 735e37e10e

@ -752,7 +752,7 @@ def cmdr_data(data: Mapping[str, Any], is_beta: bool) -> str:
MAP_STR_ANY = Mapping[str, Any]
def is_horizons(economies: MAP_STR_ANY, modules: Dict, ships: MAP_STR_ANY) -> bool:
def is_horizons(economies: MAP_STR_ANY, modules: MAP_STR_ANY, ships: MAP_STR_ANY) -> bool:
return (
any(economy['name'] == 'Colony' for economy in economies.values()) or
any(module.get('sku') == HORIZ_SKU for module in modules.values()) or