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:
1 parent
2634f35b4e
commit
e824c553ca
1 file changed
+1
-1
@@ -254,7 +254,7 @@ class WazeTravelTimeData():
|
||||
|
||||
if self.exclude is not None:
|
||||
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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user