From 28de37f33ef88486d0ef9e842045dfe46b5c4f66 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Tue, 5 Dec 2023 10:06:30 -0800 Subject: [PATCH] version bump --- autotraders/map/waypoint_types/marketplace.py | 2 +- autotraders/ship/__init__.py | 6 +++--- autotraders/version.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autotraders/map/waypoint_types/marketplace.py b/autotraders/map/waypoint_types/marketplace.py index 7a24180..e668983 100644 --- a/autotraders/map/waypoint_types/marketplace.py +++ b/autotraders/map/waypoint_types/marketplace.py @@ -27,7 +27,7 @@ class Activity(str, Enum): WEAK = "WEAK" GROWING = "GROWING" STRONG = "STRONG" - + RESTRICTED = "RESTRICTED" class TradeGood(Item): good_type: GoodType = Field(alias="type") diff --git a/autotraders/ship/__init__.py b/autotraders/ship/__init__.py index b4aecef..8dd7fc1 100644 --- a/autotraders/ship/__init__.py +++ b/autotraders/ship/__init__.py @@ -188,11 +188,11 @@ def siphon(self): quantity=j["data"]["siphon"]["yield"]["units"], ) - def refuel(self, units=None): + def refuel(self, from_cargo=False, units=None): if units is None: - j = self.post("refuel") + j = self.post("refuel", data={"fromCargo": from_cargo}) else: - j = self.post("refuel", data={"units": units}) + j = self.post("refuel", data={"units": units, "fromCargo": from_cargo}) self.update(j["data"]) return MarketTransaction(j["data"]["transaction"]) diff --git a/autotraders/version.py b/autotraders/version.py index 8129d60..576d292 100644 --- a/autotraders/version.py +++ b/autotraders/version.py @@ -1,4 +1,4 @@ -__version__ = "2.3.2" +__version__ = "2.3.3" major_version = __version__.split(".")[0] minor_version = __version__.split(".")[1] patch_version = __version__.split(".")[2]