From 063a59006bc3f87664c12fbae2f6f1b32985f2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Tue, 26 Dec 2017 13:00:34 +0100 Subject: [PATCH] check all good spaces --- src/c3nav/routing/locator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index ad76bdf1..655ac1e4 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -81,8 +81,6 @@ class Locator: scan_values[station_id] = 0 good_spaces = spaces - good_spaces = sorted(good_spaces, key=lambda item: len(item[2]), reverse=True)[:10] - best_location = None best_score = float('inf')