From 303729a5e500415165fd89bff942e4178fe9b2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 17 Dec 2017 01:45:49 +0100 Subject: [PATCH] fix extra_seconds on no waytype --- 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 6fa8549e..60592749 100644 --- a/src/c3nav/routing/router.py +++ b/src/c3nav/routing/router.py @@ -548,7 +548,7 @@ class RouterWayType: duration = edge.distance / (float(self.speed_up if self.src else 1) * walk_factor) else: duration = edge.distance / (float(self.speed if self.src else 1) * walk_factor) - duration += self.extra_seconds + duration += self.extra_seconds if self.src else 0 return duration