Skip to content
Snippets Groups Projects
Commit df7d2b1f authored by Daniel Neuwirth's avatar Daniel Neuwirth
Browse files

slimed down enqueue

parent 6b714820
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,9 @@ def enqueue_after_update(context, resource):
create_thumbnail_for_last_resource(resources, private, package_id)
def enqueue_after_delete(context, resources):
if len(resources) > 0:
package = context.get('package')
private = package.private
package_id = package.id
first_resource = resources[0]
# without the background job
create_thumbnail_for_last_resource(resources, private, package_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment