Skip to content

Commit a8f1b58

Browse files
Merge pull request #82 from maciej-wichowski/fix-route_v8-variables
2 parents 4f373c4 + 0302a9d commit a8f1b58

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

herepy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__email__ = "[email protected]"
77
__copyright__ = "Copyright (c) 2017 Abdullah Selek"
88
__license__ = "MIT License"
9-
__version__ = "3.6.3"
9+
__version__ = "3.6.4"
1010
__url__ = "https://github.com/abdullahselek/HerePy"
1111
__download_url__ = "https://pypi.org/pypi/herepy"
1212
__description__ = "A library that provides a Python interface to the HERE APIs"

herepy/routing_api.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ def route_v8(
463463
key: ",".join(values),
464464
}
465465
if exclude:
466-
key = list(avoid.keys())[0]
467-
values = list(avoid.values())[0]
466+
key = list(exclude.keys())[0]
467+
values = list(exclude.values())[0]
468468
data["exclude"] = {
469469
key: ",".join(values),
470470
}
@@ -477,8 +477,8 @@ def route_v8(
477477
if span_fields:
478478
data["spans"] = ",".join([field.__str__() for field in span_fields])
479479
if truck:
480-
key = list(avoid.keys())[0]
481-
values = list(avoid.values())[0]
480+
key = list(truck.keys())[0]
481+
values = list(truck.values())[0]
482482
data["truck"] = {
483483
key: ",".join(values),
484484
}

0 commit comments

Comments
 (0)