fix router and locator .load()

This commit is contained in:
Laura Klünder 2023-12-07 22:15:50 +01:00
parent f4257fbf3f
commit 295334a4a3
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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 = ()