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-03 19:48:01 -04:00
committed by Andrew Sayre
parent 2634f35b4e
commit e824c553ca
@@ -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]