Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arihant2math committed Oct 29, 2023
1 parent 1498139 commit 2968fdd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions autotraders/map/waypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Waypoint(SpaceTradersEntity):
modifiers: Optional[list[Trait]]
marketplace: Optional[bool]
shipyard: Optional[bool]
is_under_construction: bool
is_under_construction: Optional[bool]
symbol: MapSymbol
x: int
y: int
Expand Down Expand Up @@ -67,7 +67,9 @@ def update(self, data: Optional[dict] = None):
self.modifiers = None
if "modifiers" in data:
self.modifiers = [Trait(**trait) for trait in data["modifiers"]]
self.is_under_construction = data["isUnderConstruction"]
self.is_under_construction = None
if "isUnderConstruction" in data:
self.is_under_construction = data["isUnderConstruction"]
self.chart = data["chart"] # TODO: Fix this

def __str__(self):
Expand Down

0 comments on commit 2968fdd

Please sign in to comment.