From e2de0e0e4d4715bf43b09633ddb6fe1e6e7e6fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 21 Dec 2023 01:19:37 +0100 Subject: [PATCH] fix error when using routing restriction option --- src/c3nav/routing/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/router.py b/src/c3nav/routing/router.py index e3af7ce9..8390805f 100644 --- a/src/c3nav/routing/router.py +++ b/src/c3nav/routing/router.py @@ -450,7 +450,7 @@ class Router: else: graph *= 100000 factor = 1/100000 - all_restrictions = RouterRestrictionSet(self.restrictions.items()) + all_restrictions = RouterRestrictionSet(self.restrictions) space_nodes = tuple(reduce(operator.or_, (self.spaces[space].nodes for space in all_restrictions.spaces), set())) graph[space_nodes, :] *= factor