Skip to content
Snippets Groups Projects
Commit f15e8422 authored by Benjamin Becker's avatar Benjamin Becker
Browse files

takes id directly from package object

parent 404ddfde
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ def create_thumbnail_if_none_in_package(context, resources): ...@@ -140,7 +140,7 @@ def create_thumbnail_if_none_in_package(context, resources):
def _get_package_dict_from_context(context): def _get_package_dict_from_context(context):
package_id = context.get('package').as_dict().get('id') package_id = context.get('package').id
package_dict = toolkit.get_action('package_show')(None, {'id': package_id}) package_dict = toolkit.get_action('package_show')(None, {'id': package_id})
return package_dict return package_dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment