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