File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -691,11 +691,12 @@ def load(self, update_schemas: bool = True) -> GenericContext[C]:
691691 for snapshot in self .state_reader .get_snapshots (prod .snapshots ).values ():
692692 if snapshot .node .project in self ._projects :
693693 uncached .add (snapshot .name )
694- elif snapshot .name not in (
695- set (project .models ) | set (project .standalone_audits )
696- ):
697- store = self ._standalone_audits if snapshot .is_audit else self ._models
698- store [snapshot .name ] = snapshot .node # type: ignore
694+ else :
695+ local_store = self ._standalone_audits if snapshot .is_audit else self ._models
696+ if snapshot .name in local_store :
697+ uncached .add (snapshot .name )
698+ else :
699+ local_store [snapshot .name ] = snapshot .node # type: ignore
699700
700701 for model in self ._models .values ():
701702 self .dag .add (model .fqn , model .depends_on )
You can’t perform that action at this time.
0 commit comments