From 0df19174260e793cde03ed3b89a257287e08cf65 Mon Sep 17 00:00:00 2001 From: Renato Rosa Date: Wed, 19 Aug 2026 23:37:38 -0300 Subject: [PATCH] Atualizar app/app.py --- app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.py b/app/app.py index 0e8da6b..362905a 100644 --- a/app/app.py +++ b/app/app.py @@ -825,7 +825,7 @@ def import_file(cid): file.save(path) ext = file.filename.lower().split(".")[-1] - if ext not in ["doc", "docx", "odt", "txt", "md", "html", "htm"]: + if ext not in ["doc", "docx", "odt", "txt", "md", "html", "htm", "rtf", "epub"]: return jsonify({"erro": "Formato não suportado."}), 400 if ext == "pdf": @@ -858,7 +858,7 @@ def import_file(cid): @app.route("/api/export/pandoc///") @login_required def export_pandoc(writer, cid, filename): - if not writer in ["docx","xlsx","pptx","markdown","txt","odt","html"]: + if not writer in ["docx","xlsx","pptx","markdown","txt","odt","rtf","epub","html"]: return jsonify({"erro": "Formato de exportação não suportado."}), 400 email = session["db_user"]["email"] if app.config["AUTH_MODE"] == "db" else session["user"]["email"] db = SessionLocal()