From 2a3150159623254ffce1c50f755fd8ccec70550e Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Thu, 16 Jan 2025 23:51:03 +0100 Subject: [PATCH] fix test flight_plan with logging issue --- src/traffic/core/flightplan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/traffic/core/flightplan.py b/src/traffic/core/flightplan.py index 5287bb8f..d965ad33 100644 --- a/src/traffic/core/flightplan.py +++ b/src/traffic/core/flightplan.py @@ -139,7 +139,7 @@ def get(self) -> Optional[Route]: # type: ignore if not isinstance(self.elt[0], str): return None - return airways.global_get(self.elt[0]) + return airways.get(self.elt[0]) @classmethod def valid(cls, elt: str) -> bool: @@ -181,7 +181,7 @@ def get( # type: ignore return None if airport is not None: - return airways.global_get(self.elt[0] + airport) + return airways.get(self.elt[0] + airport) if nm_airways.available: possible = set( @@ -210,7 +210,7 @@ def get( # type: ignore return None if airport is not None: - return airways.global_get(self.elt[0] + airport) + return airways.get(self.elt[0] + airport) if nm_airways.available: possible = set(