Fix exclusion of routes with excl_filter (#24928)

Fix exclusion of routes with excl_filter (was including instead of excluding)
This commit is contained in:
Steven Rollason 2019-07-04 00:48:01 +01:00 committed by Andrew Sayre
parent 2634f35b4e
commit e824c553ca

View File

@ -254,7 +254,7 @@ class WazeTravelTimeData():
if self.exclude is not None: if self.exclude is not None:
routes = {k: v for k, v in routes.items() if routes = {k: v for k, v in routes.items() if
self.exclude.lower() in k.lower()} self.exclude.lower() not in k.lower()}
route = sorted(routes, key=(lambda key: routes[key][0]))[0] route = sorted(routes, key=(lambda key: routes[key][0]))[0]