Skip to content

Commit

Permalink
Retrieve dbgpts using fuzzy matching
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaoqiyuan committed Oct 31, 2024
1 parent 0044bcf commit 8985ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbgpt/storage/metadata/_base_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _create_query_object(
elif isinstance(value, (tuple, dict, set)):
continue
else:
query = query.filter(getattr(model_cls, key) == value)
query = query.filter(getattr(model_cls, key).like(f"%{value}%"))

if desc_order_column:
query = query.order_by(desc(getattr(model_cls, desc_order_column)))
Expand Down

0 comments on commit 8985ab0

Please sign in to comment.