forked from LiveCarta/BookConverter
Formatting: documentation + optimization
This commit is contained in:
@@ -13,8 +13,8 @@ class BookSolver:
|
||||
"""
|
||||
This is Main Abstract class for solving a task of a book conversion
|
||||
Having an id of coming book, gets book from server, runs conversion.
|
||||
In parallel it updates status of a book conversion on admin panel.
|
||||
Finally sends result to server.
|
||||
In parallel, it updates status of a book conversion on admin panel.
|
||||
Finally, sends result to server.
|
||||
Result is a json, JSON schema in book_schema.json
|
||||
"""
|
||||
|
||||
@@ -35,12 +35,12 @@ class BookSolver:
|
||||
assert LiveCartaConfig.SUPPORTED_LEVELS == len(LiveCartaConfig.SUPPORTED_HEADERS), \
|
||||
"Length of headers doesn't match allowed levels."
|
||||
|
||||
def save_book_file(self, content: str):
|
||||
def save_book_file(self, content: bytes):
|
||||
"""
|
||||
Function saves binary content of file to .docx/.epub
|
||||
Parameters
|
||||
----------
|
||||
content: str
|
||||
content: bytes str
|
||||
binary content of the file
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user