File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -439,7 +439,10 @@ def get_by_qualified_name(
439439 related_attributes and len (related_attributes )
440440 ):
441441 search = (
442- FluentSearch ().select ().where (Asset .QUALIFIED_NAME .eq (qualified_name ))
442+ FluentSearch ()
443+ .select ()
444+ .where (Asset .QUALIFIED_NAME .eq (qualified_name ))
445+ .where (Asset .TYPE_NAME .eq (asset_type .__name__ ))
443446 )
444447 for attribute in attributes :
445448 search = search .include_on_results (attribute )
@@ -509,7 +512,12 @@ def get_by_guid(
509512 if (attributes and len (attributes )) or (
510513 related_attributes and len (related_attributes )
511514 ):
512- search = FluentSearch ().select ().where (Asset .GUID .eq (guid ))
515+ search = (
516+ FluentSearch ()
517+ .select ()
518+ .where (Asset .GUID .eq (guid ))
519+ .where (Asset .TYPE_NAME .eq (asset_type .__name__ ))
520+ )
513521 for attribute in attributes :
514522 search = search .include_on_results (attribute )
515523 for relation_attribute in related_attributes :
You can’t perform that action at this time.
0 commit comments