worker-automate-hub 0.5.38__py3-none-any.whl → 0.5.39__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- worker_automate_hub/api/client.py +3 -0
- worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +1488 -0
- worker_automate_hub/tasks/task_definitions.py +2 -0
- worker_automate_hub/tasks/task_executor.py +1 -1
- worker_automate_hub/utils/util.py +545 -8
- {worker_automate_hub-0.5.38.dist-info → worker_automate_hub-0.5.39.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.38.dist-info → worker_automate_hub-0.5.39.dist-info}/RECORD +9 -8
- {worker_automate_hub-0.5.38.dist-info → worker_automate_hub-0.5.39.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.38.dist-info → worker_automate_hub-0.5.39.dist-info}/entry_points.txt +0 -0
@@ -460,6 +460,9 @@ async def send_file(uuidRelacao: str, desArquivo: str, tipo: str, file: bytes, f
|
|
460
460
|
if file_extension == "txt":
|
461
461
|
filename = "text.txt"
|
462
462
|
content_type = "text/plain"
|
463
|
+
elif file_extension == "pdf":
|
464
|
+
filename = "file.pdf"
|
465
|
+
content_type = "application/pdf"
|
463
466
|
else:
|
464
467
|
filename = "file.jpg"
|
465
468
|
content_type = "image/jpeg"
|