File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,10 @@ def get_by_qualified_name(
439
439
related_attributes and len (related_attributes )
440
440
):
441
441
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__ ))
443
446
)
444
447
for attribute in attributes :
445
448
search = search .include_on_results (attribute )
@@ -509,7 +512,12 @@ def get_by_guid(
509
512
if (attributes and len (attributes )) or (
510
513
related_attributes and len (related_attributes )
511
514
):
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
+ )
513
521
for attribute in attributes :
514
522
search = search .include_on_results (attribute )
515
523
for relation_attribute in related_attributes :
You can’t perform that action at this time.
0 commit comments