Skip to content

Commit

Permalink
pacakge_search: changing dict comprehension syntax to be 2.6 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-m-g committed Oct 18, 2015
1 parent b6bf279 commit 839e230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/action/get.py
Expand Up @@ -1968,7 +1968,7 @@ def package_search(context, data_dict):

#Querying just for the columns we're interested in: name and title
groups = session.query(model.Group.name, model.Group.title).filter(model.Group.name.in_(group_keys)).all()
group_display_names = {g.name: g.title for g in groups}
group_display_names = dict((g.name, g.title) for g in groups)

# Transform facets into a more useful data structure.
restructured_facets = {}
Expand Down

0 comments on commit 839e230

Please sign in to comment.