Skip to content

Commit e44bb35

Browse files
authored
[core][fix] Fix model filter condition (#2189)
1 parent 36ddfa5 commit e44bb35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fixcore/fixcore/web/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ async def get_model(self, request: Request, deps: TenantDependencies) -> StreamR
973973
md = md.filter_complex(lambda x: x.fqn in kinds, with_bases, with_property_kinds)
974974
if filter_names := request.query.get("filter"):
975975
parts = filter_names.split(",")
976-
md = md.filter_complex(lambda x: any(x.fqn in p for p in parts), with_bases, with_property_kinds)
976+
md = md.filter_complex(lambda x: any(p in x.fqn for p in parts), with_bases, with_property_kinds)
977977
if aggregate_roots_only:
978978
md = md.filter_complex(lambda x: x.aggregate_root, with_bases, with_property_kinds)
979979
md = md.flat_kinds(full_model) if request.query.get("flat", "false") == "true" else md

0 commit comments

Comments
 (0)