Left only local presets cause there is no changes on converter side

This commit is contained in:
Kibzik
2023-03-17 18:41:57 +03:00
parent 40e153130b
commit 832dbc3348
2 changed files with 6 additions and 4 deletions

View File

@@ -82,8 +82,10 @@ class BookSolver:
file_path=f"{self.access.url}/doc-convert/{self.book_id}/presets")
self.book_logger.log("Preset file was received from server.")
if len(content) > 3:
self.preset_path = pathlib.Path(
str(self.save_file(content, path_to_save="preset", file_type="json")))
# self.preset_path = pathlib.Path(
# str(self.save_file(content, path_to_save="preset", file_type="json")))
self.preset_path = "preset/docx_presets.json" if self.book_type == "docx" \
else "preset/epub_presets.json"
else:
self.preset_path = "preset/docx_presets.json" if self.book_type == "docx" \
else "preset/epub_presets.json"