Skip to content

Commit

Permalink
CHOUETTE-2496 Avoid error when distance/duration are float values
Browse files Browse the repository at this point in the history
  • Loading branch information
albanpeignier committed Dec 16, 2022
1 parent e6d7ee5 commit 102f1de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/control/journey_pattern_speed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ def query
position,
(
(journey_patterns.costs->>departure_arrival_ids)::jsonb->>'distance'
)::integer as distance,
)::float as distance,
(
(journey_patterns.costs->>departure_arrival_ids)::jsonb->>'time'
)::integer as duration
)::float as duration
from (
select journey_pattern_id,
position,
Expand Down

0 comments on commit 102f1de

Please sign in to comment.