From eb4638a3267a647ec23178110af4109ebc05c8db Mon Sep 17 00:00:00 2001 From: Mario de Frutos Date: Fri, 30 Nov 2018 11:24:12 +0100 Subject: [PATCH] CR fixes --- .../python/cartodb_services/cartodb_services/tomtom/types.py | 2 +- .../cartodb_services/cartodb_services/tools/normalize.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/lib/python/cartodb_services/cartodb_services/tomtom/types.py b/server/lib/python/cartodb_services/cartodb_services/tomtom/types.py index 71ea26f..e161a74 100644 --- a/server/lib/python/cartodb_services/cartodb_services/tomtom/types.py +++ b/server/lib/python/cartodb_services/cartodb_services/tomtom/types.py @@ -32,5 +32,5 @@ TRANSPORT_MODE_TO_TOMTOM = { DEFAULT_ROUTE_TYPE = ROUTE_TYPE_SHORT MODE_TYPE_TO_TOMTOM = { 'shortest': ROUTE_TYPE_SHORT, - 'fastest': ROUTE_TYPE_SHORT + 'fastest': ROUTE_TYPE_FAST } diff --git a/server/lib/python/cartodb_services/cartodb_services/tools/normalize.py b/server/lib/python/cartodb_services/cartodb_services/tools/normalize.py index dac8066..6c73ca4 100644 --- a/server/lib/python/cartodb_services/cartodb_services/tools/normalize.py +++ b/server/lib/python/cartodb_services/cartodb_services/tools/normalize.py @@ -5,5 +5,4 @@ def normalize(str_input): .replace(';', ',') def options_to_dict(options): - options_list = list(chain(*[option.split('=') for option in options])) - return dict(zip(options_list[::2],options_list[1::2])) + return dict(option.split("=") for option in options)