Skip to content

Commit

Permalink
fix for package_list returning nested list
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jun 26, 2013
1 parent c84e9ea commit fd6e639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/logic/action/get.py
Expand Up @@ -79,7 +79,7 @@ def package_list(context, data_dict):
query = query.where(_and_(package_revision_table.c.state=='active',
package_revision_table.c.current==True))
query = query.order_by(col)
return zip(*query.execute())
return list(zip(*query.execute())[0])

def current_package_list_with_resources(context, data_dict):
'''Return a list of the site's datasets (packages) and their resources.
Expand Down

0 comments on commit fd6e639

Please sign in to comment.