forked from LiveCarta/BookConverter
epub converter: refactor Access class
This commit is contained in:
@@ -23,7 +23,7 @@ def save_image_locally(img_file_path, img_content, book_id):
|
||||
|
||||
|
||||
def save_image_to_aws(access: Access, img_file_path, img_content: bytes, book_id):
|
||||
link = access.send_image_by_bytes(img_file_path, img_content, book_id)
|
||||
link = access.send_image(img_file_path, doc_id=book_id, img_content=img_content)
|
||||
return link
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user