Skip to content

Commit

Permalink
Remove hardcoded _guid_type in MDS query
Browse files Browse the repository at this point in the history
  • Loading branch information
nss10 committed Oct 31, 2024
1 parent ee60695 commit 2829326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mds/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def add_filter(query):
query = query.where(Metadata.data[path].has_key(field))
else:
values = ["*" if v == "\*" else v for v in values]
path = path if path == "_guid_type" else list(path.split("."))
if "." in path:
path = list(path.split("."))
query = query.where(
db.or_(Metadata.data[path].astext == v for v in values)
)
Expand Down

0 comments on commit 2829326

Please sign in to comment.