Fixed arguments

This commit is contained in:
2022-10-05 12:18:04 +02:00
parent fe3e839abb
commit 6809e3ae9c
4 changed files with 19 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ def stop_by_coords(
if selection_mode == None:
selection_mode = None
else:
selection_mode = (selection_mode.code).upper()
selection_mode = selection_mode.code
stops = []
stops_raw = raw_stop_by_coords(
@@ -55,7 +55,7 @@ def stop_by_coords(
lang=lang.code,
radius=radius,
maxNo=max_number,
stopType=(stop_type.code).upper(),
stopType=stop_type.code,
locationSelectionMode=selection_mode
)

View File

@@ -55,7 +55,7 @@ def stop_by_name(
if selection_mode == None:
selection_mode = None
else:
selection_mode = (selection_mode.code).upper()
selection_mode = selection_mode.code
stops = []
stops_raw = raw_stop_by_name(
@@ -63,14 +63,14 @@ def stop_by_name(
inputString=query,
lang=lang.code,
maxNo=max_number,
stopType=(stop_type.code).upper(),
stopType=stop_type.code,
locationSelectionMode=selection_mode,
coordLat=coord_lat,
coordLong=coord_lon,
radius=radius,
refineId=refine_id,
stations=stations,
filterMode=(filter_mode.code).upper()
filterMode=filter_mode.code
)
find_exception(stops_raw)