Skip to content

Commit

Permalink
Prefix string literals with u
Browse files Browse the repository at this point in the history
  • Loading branch information
howff committed Nov 11, 2019
1 parent cfff60e commit 1df691f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/views/api.py
Expand Up @@ -385,8 +385,8 @@ def tag_autocomplete(ver=API_REST_DEFAULT_VERSION):
u'user': g.user, u'auth_user_obj': g.userobj}

data_dict = {u'q': q, u'limit': limit}
if vocab != '':
data_dict['vocabulary_id'] = vocab
if vocab != u'':
data_dict[u'vocabulary_id'] = vocab

tag_names = get_action(u'tag_autocomplete')(context, data_dict)

Expand Down

0 comments on commit 1df691f

Please sign in to comment.