1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 01:22:19 +03:00

Correctly return and receive bare Tuple, not nested.

This commit is contained in:
Athanasius 2020-09-18 12:59:09 +01:00
parent 030ae05889
commit f485ffa737

View File

@ -286,7 +286,7 @@ Msg:\n{msg}''')
# Set a safe value
ships = {'shipyard_list': {}, 'unavailable_list': []}
return (modules, ships)
return modules, ships
def export_outfitting(self, data: Mapping[str, Any], is_beta: bool) -> None:
"""
@ -296,7 +296,7 @@ Msg:\n{msg}''')
:param data: dict containing the outfitting data
:param is_beta: whether or not we're currently in beta mode
"""
(modules, ships) = self.safe_modules_and_ships(data)
modules, ships = self.safe_modules_and_ships(data)
# Horizons flag - will hit at least Int_PlanetApproachSuite other than at engineer bases ("Colony"),
# prison or rescue Megaships, or under Pirate Attack etc
@ -339,7 +339,7 @@ Msg:\n{msg}''')
:param data: dict containing the shipyard data
:param is_beta: whether or not we are in beta mode
"""
(modules, ships) = self.safe_modules_and_ships(data)
modules, ships = self.safe_modules_and_ships(data)
horizons: bool = is_horizons(
data['lastStarport'].get('economies', {}),