Skip to content

Commit

Permalink
fix incorrect type in forward_towards_code
Browse files Browse the repository at this point in the history
  • Loading branch information
iiiii7d committed Jun 26, 2024
1 parent 2aed008 commit 856b530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_direction_forward_towards(self, ctx: CTX) -> S | None:
return (
None
if self.direction is None
else type(self).station_fn(ctx)(codes={self.direction.forward_towards_code}, company=self.get_company(ctx))
else type(self).station_fn(ctx)(codes={self.direction.forward_towards_code}, company=self.get_company(ctx)).id
)

def set_direction_forward_towards(self, ctx: CTX, v: S):
Expand Down

0 comments on commit 856b530

Please sign in to comment.