From 050256619957ebd162266640f04c7bc823a505cb Mon Sep 17 00:00:00 2001 From: Lukas Connolly Date: Fri, 23 Aug 2024 23:47:23 +0200 Subject: [PATCH] FIX: NAV-150 - Fix incorrect keyword arguments. --- public_transit_viewer/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_transit_viewer/client.py b/public_transit_viewer/client.py index aa676ca..95ed0bf 100644 --- a/public_transit_viewer/client.py +++ b/public_transit_viewer/client.py @@ -85,9 +85,9 @@ def get_connections( travel_date_time, time_type=time_type, query_config=QueryConfig(max_walking_duration=_convert_to_seconds(max_walking_duration), - max_transfer_number=max_transfers, + max_num_transfers=max_transfers, max_travel_time=_convert_to_seconds(max_travel_time), - min_transfer_time=_convert_to_seconds(min_transfer_time), + min_transfer_duration=_convert_to_seconds(min_transfer_time), accessibility=wheelchair_accessible, bikes=bikes_allowed, travel_modes=travel_mode_enums) @@ -132,9 +132,9 @@ def get_isolines( travel_date_time, time_type=time_type, query_config=QueryConfig(max_walking_duration=_convert_to_seconds(max_walking_duration), - max_transfer_number=max_transfers, + max_num_transfers=max_transfers, max_travel_time=_convert_to_seconds(max_travel_time), - min_transfer_time=_convert_to_seconds(min_transfer_time), + min_transfer_duration=_convert_to_seconds(min_transfer_time), accessibility=wheelchair_accessible, bikes=bikes_allowed, travel_modes=travel_mode_enums)