Add processor (no stem in file)

This commit is contained in:
Kiryl
2021-12-01 16:08:19 +03:00
parent ad6be84c4b
commit ef3502cd0a
2 changed files with 16 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ def update_src_links_in_images(body_tag: Tag,
path2aws_path[path_to_img_from_root] = new_folder
else:
new_folder = save_image_locally(
path_to_img_from_root, img_content, book_id)
path_to_img_from_root, img_content, 'book_id')
img.attrs['src'] = str(new_folder)
if img.attrs.get('width'):