From 93bf82baa4eff5835c0846c4aa4def7c95ddf8b4 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Sun, 4 Jun 2023 00:12:41 -0700 Subject: [PATCH] bug fix --- autotraders/map/waypoint_types/jumpgate.py | 4 ++-- autotraders/map/waypoint_types/marketplace.py | 4 ++-- autotraders/map/waypoint_types/shipyard.py | 4 ++-- pyproject.toml | 2 +- source/conf.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/autotraders/map/waypoint_types/jumpgate.py b/autotraders/map/waypoint_types/jumpgate.py index 3da125b..c224ad0 100644 --- a/autotraders/map/waypoint_types/jumpgate.py +++ b/autotraders/map/waypoint_types/jumpgate.py @@ -5,10 +5,10 @@ class JumpGate(WaypointType): - def __init__(self, waypoint: str, session: AutoTradersSession, update=True): + def __init__(self, waypoint: str, session: AutoTradersSession, data=None): self.faction_symbol: Optional[str] = "" self.jump_range: Optional[int] = None - super().__init__(waypoint, "jump-gate", session, update) + super().__init__(waypoint, "jump-gate", session, data) def update(self, data: dict = None): if data is None: diff --git a/autotraders/map/waypoint_types/marketplace.py b/autotraders/map/waypoint_types/marketplace.py index dd1736b..099864a 100644 --- a/autotraders/map/waypoint_types/marketplace.py +++ b/autotraders/map/waypoint_types/marketplace.py @@ -15,12 +15,12 @@ def __init__(self, data): class Marketplace(WaypointType): - def __init__(self, waypoint: str, session: AutoTradersSession, update=True): + def __init__(self, waypoint: str, session: AutoTradersSession, data=None): self.imports: Optional[list[str]] = None self.exports: Optional[list[str]] = None self.exchange: Optional[list[str]] = None self.trade_goods: Optional[list[TradeGood]] = None - super().__init__(waypoint, "market", session, update) + super().__init__(waypoint, "market", session, data) def update(self, data: dict = None): if data is None: diff --git a/autotraders/map/waypoint_types/shipyard.py b/autotraders/map/waypoint_types/shipyard.py index 276ce8f..f7ae974 100644 --- a/autotraders/map/waypoint_types/shipyard.py +++ b/autotraders/map/waypoint_types/shipyard.py @@ -20,10 +20,10 @@ def __init__(self, data): class Shipyard(WaypointType): - def __init__(self, waypoint: str, session: AutoTradersSession, update=True): + def __init__(self, waypoint: str, session: AutoTradersSession, data=None): self.ship_types: Optional[list[str]] = None self.ships: Optional[list[ShipyardShip]] = None - super().__init__(waypoint, "shipyard", session, update) + super().__init__(waypoint, "shipyard", session, data) def update(self, data: dict = None): if data is None: diff --git a/pyproject.toml b/pyproject.toml index 8301b5c..dad1395 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "autotraders" -version = "1.3.1" +version = "1.3.2" authors = [ { name="Ashwin Naren", email="arihant2math@gmail.com" }, ] diff --git a/source/conf.py b/source/conf.py index b282688..08d0cef 100644 --- a/source/conf.py +++ b/source/conf.py @@ -12,7 +12,7 @@ project = "Autotraders" copyright = "2023, cosmictraders" author = "cosmictraders" -release = "1.3.1" +release = "1.3.2" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration