From 295334a4a31ae4f18f5f6192d7ce28ab7aca8b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 7 Dec 2023 22:15:50 +0100 Subject: [PATCH] fix router and locator .load() --- src/c3nav/routing/locator.py | 2 +- src/c3nav/routing/router.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c3nav/routing/locator.py b/src/c3nav/routing/locator.py index 1e786590..272d9291 100644 --- a/src/c3nav/routing/locator.py +++ b/src/c3nav/routing/locator.py @@ -146,7 +146,7 @@ class Locator: if getattr(cls.cached, 'update', cls.NoUpdate) != update: cls.cached.update = update cls.cached.data = cls.load_nocache(update) - return cls.cached + return cls.cached.data def convert_raw_scan_data(self, raw_scan_data: list[LocateRequestPeerSchema]) -> ScanData: return self.convert_scan([d.dict() for d in raw_scan_data], create_peers=False) diff --git a/src/c3nav/routing/router.py b/src/c3nav/routing/router.py index e0f5a9de..f535d69a 100644 --- a/src/c3nav/routing/router.py +++ b/src/c3nav/routing/router.py @@ -294,7 +294,7 @@ class Router: if getattr(cls.cached, 'update', cls.NoUpdate) != update: cls.cached.update = update cls.cached.data = cls.load_nocache(update) - return cls.cached + return cls.cached.data def get_locations(self, location, restrictions): locations = ()