This commit is contained in:
Mario de Frutos 2018-11-30 11:24:12 +01:00
parent a919b87664
commit eb4638a326
No known key found for this signature in database
GPG Key ID: A206D1F8FCA8D2B5
2 changed files with 2 additions and 3 deletions

View File

@ -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
}

View File

@ -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)