From cceee368381432bf6adba10955b2aaa11e999290 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Fri, 2 Jul 2021 05:23:33 +0500 Subject: [PATCH] 0.1 release --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 3810ce0..57e490b 100644 --- a/app/main.py +++ b/app/main.py @@ -14,10 +14,10 @@ def root(): @app.post("/uploadfile/", response_model=HTMLBook) async def create_upload_file(file: UploadFile = File(...)): - if file.filename.endswith(".epub"): - content = await epub2html(file.file) - elif file.filename.endswith(".fb2"): + if file.filename.endswith(".fb2"): content = await fb22html(file.file) + # elif file.filename.endswith(".epub"): + # content = await epub2html(file.file) else: raise HTTPException(status_code=415, detail="Error! Unsupported file type") return content