From 839e2309e93e35c762c0e1a1e2b5614be5f54049 Mon Sep 17 00:00:00 2001 From: alexandru-m-g Date: Mon, 19 Oct 2015 00:56:06 +0300 Subject: [PATCH] pacakge_search: changing dict comprehension syntax to be 2.6 compatible --- ckan/logic/action/get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index 32ef0f7afa9..dd9c578ad09 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -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 = {}