Skip to content

Commit

Permalink
[core][fix] Fix model filter condition (#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias authored Sep 13, 2024
1 parent 36ddfa5 commit e44bb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixcore/fixcore/web/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ async def get_model(self, request: Request, deps: TenantDependencies) -> StreamR
md = md.filter_complex(lambda x: x.fqn in kinds, with_bases, with_property_kinds)
if filter_names := request.query.get("filter"):
parts = filter_names.split(",")
md = md.filter_complex(lambda x: any(x.fqn in p for p in parts), with_bases, with_property_kinds)
md = md.filter_complex(lambda x: any(p in x.fqn for p in parts), with_bases, with_property_kinds)
if aggregate_roots_only:
md = md.filter_complex(lambda x: x.aggregate_root, with_bases, with_property_kinds)
md = md.flat_kinds(full_model) if request.query.get("flat", "false") == "true" else md
Expand Down

0 comments on commit e44bb35

Please sign in to comment.