From 66e2c7322688a8820359533c82dd8adf5061a1f8 Mon Sep 17 00:00:00 2001 From: Jochem van Dooren Date: Mon, 18 Mar 2024 17:23:12 +0100 Subject: [PATCH] Improve loading --- src/dbt_score/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dbt_score/models.py b/src/dbt_score/models.py index 2fb2045..04c298b 100644 --- a/src/dbt_score/models.py +++ b/src/dbt_score/models.py @@ -222,8 +222,7 @@ def __init__(self, file_path: Path): Args: file_path: The file path of the JSON manifest. """ - self.file_path = file_path - self.raw_manifest = json.loads(self.file_path.read_text(encoding="utf-8")) + self.raw_manifest = json.loads(file_path.read_text(encoding="utf-8")) self.raw_nodes = self.raw_manifest.get("nodes", {}) self.models: list[Model] = [] self.tests: dict[str, list[dict[str, Any]]] = defaultdict(list)