Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik van Raalte committed Oct 11, 2023
1 parent 72d8921 commit 3e825d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nstimes/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def journey(start: Annotated[str, typer.Option(help="Start station", autocomplet
trip = trip["legs"][0]
origin = trip["origin"]

track = int(origin.get('actualTrack', origin.get('plannedTrack', -1)))
track = origin.get('actualTrack', origin.get('plannedTrack', "?"))

planned_departure_time = datetime.strptime(origin['plannedDateTime'],DATETIME_FORMAT_STRING)

Expand Down
2 changes: 1 addition & 1 deletion nstimes/types/departure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@dataclass
class Departure:
train_type: str
platform: int
platform: str
planned_departure_time: datetime
actual_departure_time: datetime = None

Expand Down

0 comments on commit 3e825d7

Please sign in to comment.