Skip to content

Commit

Permalink
set is_complete_project better
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnb-devoted committed Nov 27, 2024
1 parent c7f0417 commit 18da8ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spectacles/lookml.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ async def build_project(
"""Creates an object (tree) representation of a LookML project."""
if filters is None:
filters = ["*/*"]
is_complete_project = False

if get_full_project:
models = []
Expand All @@ -540,8 +541,7 @@ async def build_project(
"b) it has an active configuration."
),
)
else:
project.is_complete_project = True
is_complete_project = True

else:
# Create a project with only the models specified in the filters
Expand Down Expand Up @@ -581,4 +581,6 @@ async def build_project(
else:
project = Project(name, [m for m in models if len(m.explores) > 0])

# Indicates whether the project has all of the models/explores or just the selected ones
project.is_complete_project = is_complete_project
return project

0 comments on commit 18da8ff

Please sign in to comment.