mirror of
https://github.com/elisspace/core.git
synced 2026-09-30 22:39:55 +00:00
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:
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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user