Skip to content

Commit

Permalink
Merge pull request #2701 from ckan/revert-2698-2697-like-query-autoco…
Browse files Browse the repository at this point in the history
…mplete

Revert "[#2697] Make sure package_autocomplete uses LIKE with wildcards"
  • Loading branch information
rossjones committed Oct 21, 2015
2 parents 587e206 + 999d4aa commit 518bdbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/action/get.py
Expand Up @@ -1608,7 +1608,7 @@ def package_autocomplete(context, data_dict):
limit = data_dict.get('limit', 10)
q = data_dict['q']

like_q = u"%%%s%%" % q
like_q = u"%s%%" % q

query = model.Session.query(model.Package)
query = query.filter(model.Package.state == 'active')
Expand Down

0 comments on commit 518bdbd

Please sign in to comment.