diff --git a/app/main.py b/app/main.py index 2dd3e77..393f33b 100644 --- a/app/main.py +++ b/app/main.py @@ -97,8 +97,11 @@ async def get_status(): "nome": nome, "status": status.get("status", "Erro"), "mensagem": status.get("mensagem", "---"), - "tempo": status.get("tempo", "---") # ✅ AQUI + "tempo": status.get("tempo", "---"), + "tamanho": f"{status.get('tamanho', 0)} KB", + "data": status.get("data", "") }) + else: files.append({ "nome": nome, diff --git a/app/processor.py b/app/processor.py index f01c0b9..27a20d0 100644 --- a/app/processor.py +++ b/app/processor.py @@ -108,8 +108,11 @@ async def processar_em_lote(): status_arquivos[item['nome_original']] = { "status": resultado.get("status"), "mensagem": resultado.get("mensagem", ""), - "tempo": resultado.get("tempo", "---") + "tempo": resultado.get("tempo", "---"), + "tamanho": os.path.getsize(item['caminho_pdf']) // 1024, # tamanho em KB + "data": time.strftime("%d/%m/%Y", time.localtime(os.path.getmtime(item['caminho_pdf']))) } + resultados.append(status_arquivos[item['nome_original']]) except Exception as e: status_arquivos[item['nome_original']] = { diff --git a/app/templates/upload.html b/app/templates/upload.html index f7f730b..c15782f 100755 --- a/app/templates/upload.html +++ b/app/templates/upload.html @@ -8,100 +8,184 @@
Apenas PDFs textuais (não escaneados)
| Arquivo | -Status | -Mensagem | -Tempo | -
|---|---|---|---|
| Nenhum arquivo selecionado. | |||