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

fix for ending1

parent b77e2a3b
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,6 @@ def enqueue_after_delete(context, resources): ...@@ -99,7 +99,6 @@ def enqueue_after_delete(context, resources):
private = package.private private = package.private
package_id = package.id package_id = package.id
first_resource = resources[0] first_resource = resources[0]
package_id = first_resource.get('package_id')
# without the background job # without the background job
create_thumbnail_for_last_resource(resources, private, package_id) create_thumbnail_for_last_resource(resources, private, package_id)
......
...@@ -65,11 +65,11 @@ def create_thumbnail_from_file(file, package_id, private): ...@@ -65,11 +65,11 @@ def create_thumbnail_from_file(file, package_id, private):
old_filepath = get_filepath_for_thumbnail(concatenate_filename(filename)) old_filepath = get_filepath_for_thumbnail(concatenate_filename(filename))
if os.path.exists(old_filepath): if os.path.exists(old_filepath):
os.remove(old_filepath) os.remove(old_filepath)
convert_from_bytes(file_read, path_to_image = convert_from_bytes(file_read,
dpi = 50, size=(width, None),
#size=(width, None),
output_folder=directory, output_folder=directory,
output_file=filename, output_file=filename,
single_file = True,
first_page=0, first_page=0,
last_page=0, last_page=0,
fmt='jpg' fmt='jpg'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment