Formatting: documentation + optimization

This commit is contained in:
Kiryl
2022-06-06 16:37:42 +03:00
parent 002316f086
commit acb2ce48c2
3 changed files with 33 additions and 43 deletions

View File

@@ -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
"""