Skip to content

Commit

Permalink
Improve loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jochemvandooren committed Mar 18, 2024
1 parent db2643b commit 66e2c73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dbt_score/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 66e2c73

Please sign in to comment.