Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arihant2math committed Jun 4, 2023
1 parent a9e6b93 commit 93bf82b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions autotraders/map/waypoint_types/jumpgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions autotraders/map/waypoint_types/marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions autotraders/map/waypoint_types/shipyard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93bf82b

Please sign in to comment.