worker-automate-hub 0.4.378__py3-none-any.whl → 0.4.379__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 +1 -1
- worker_automate_hub/tasks/jobs/sped_fiscal.py +3 -3
- {worker_automate_hub-0.4.378.dist-info → worker_automate_hub-0.4.379.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.4.378.dist-info → worker_automate_hub-0.4.379.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.4.378.dist-info → worker_automate_hub-0.4.379.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.4.378.dist-info → worker_automate_hub-0.4.379.dist-info}/entry_points.txt +0 -0
@@ -505,7 +505,7 @@ async def send_file(uuidRelacao: str, desArquivo: str, tipo: str, file: bytes, f
|
|
505
505
|
env_config, _ = load_env_config()
|
506
506
|
|
507
507
|
if file_extension == "txt":
|
508
|
-
filename = "
|
508
|
+
filename = "text.txt"
|
509
509
|
content_type = "text/plain"
|
510
510
|
else:
|
511
511
|
filename = "file.jpg"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import getpass
|
2
2
|
import warnings
|
3
3
|
import os
|
4
|
+
import io
|
4
5
|
import uuid
|
5
6
|
from datetime import datetime
|
6
7
|
|
@@ -407,16 +408,15 @@ async def sped_fiscal(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
407
408
|
|
408
409
|
console.print("\nArquivo do SPED gerado com sucesso...", style="bold green")
|
409
410
|
console.log("Realizando o envio para o Backoffice...\n")
|
410
|
-
file_bytes = ""
|
411
411
|
with open(temp_path_to_txt, 'rb') as file:
|
412
|
-
file_bytes = file.read()
|
412
|
+
file_bytes = io.BytesIO(file.read())
|
413
413
|
|
414
414
|
|
415
415
|
await worker_sleep(6)
|
416
416
|
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
417
417
|
desArquivo = f"ArquivoSped_{filial_cod}_{timestamp}.txt"
|
418
418
|
try:
|
419
|
-
await send_file(historico_id, desArquivo, "
|
419
|
+
await send_file(historico_id, desArquivo, "txt", file_bytes, file_extension="txt")
|
420
420
|
result = "Arquivo do SPED gerado com sucesso e arquivo salvo no Backoffice !"
|
421
421
|
os.remove(temp_path_to_txt)
|
422
422
|
return RpaRetornoProcessoDTO(
|
@@ -1,7 +1,7 @@
|
|
1
1
|
worker_automate_hub/__init__.py,sha256=LV28uQvBfpPIqudGIMJmVB8E941MjXHcu8DMoX5n8AM,25
|
2
2
|
worker_automate_hub/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
worker_automate_hub/api/ahead_service.py,sha256=0tX-i1ACRg3_yOI-_AfFEZ6FNU3L8Zb316n3QUkSwL0,2027
|
4
|
-
worker_automate_hub/api/client.py,sha256=
|
4
|
+
worker_automate_hub/api/client.py,sha256=NeL7ayYaH5OU0g6FKw94hFd53LrUatlQz9vicjg10Dw,20687
|
5
5
|
worker_automate_hub/api/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
worker_automate_hub/api/helpers/api_helpers.py,sha256=SkheO2fXexeh-a4shr8Qzsz_kZhuSG0DJ7kbODctRbM,3696
|
7
7
|
worker_automate_hub/api/rpa_historico_service.py,sha256=WhTMVW-uNlJO3YZakhx63xlsw3_XDeWnSD-3MVEzzdk,4763
|
@@ -54,7 +54,7 @@ worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=Y-mKYcgX1kwcy_s
|
|
54
54
|
worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=QBGm6eS5JghgNWNqZlk1g2a2iV8LnBLiOTBBL3Giet0,4181
|
55
55
|
worker_automate_hub/tasks/jobs/login_emsys.py,sha256=IoGCIvO4UwmuxOZEn3cvYJlKyhsWvtHvbFk8vwjTroQ,5620
|
56
56
|
worker_automate_hub/tasks/jobs/playground.py,sha256=bdnXv3C7WLQUxt4edGZDfAbRJJ2-q4zuIQaK3GLnaUc,1765
|
57
|
-
worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=
|
57
|
+
worker_automate_hub/tasks/jobs/sped_fiscal.py,sha256=B5Tb3p88gU3uzvg5ehMcIU0RWdAJ_EJyk_KAxcX5avg,20032
|
58
58
|
worker_automate_hub/tasks/jobs/transferencias.py,sha256=keCUlvbPhLrTiZQ9Co_r6IqL5wjYqVGB_-mgvdDe9pM,36080
|
59
59
|
worker_automate_hub/tasks/task_definitions.py,sha256=2Jp1H4_qJZqqGyaP6MA87KLt4QNrtWBYWbXu-2gymFo,4459
|
60
60
|
worker_automate_hub/tasks/task_executor.py,sha256=eXFgWbcM8aMPwENvNix8KyFv7BqvIwhXUDkBSI1ul7M,8873
|
@@ -67,7 +67,7 @@ worker_automate_hub/utils/updater.py,sha256=0LR6Xpe3HZk-xu-trH7vKRhP5FXp0nhp1qxt
|
|
67
67
|
worker_automate_hub/utils/util.py,sha256=hUzQOnVYwvlrFzAv1p5Lt3s1dmW_77NZFuG77QQHKL4,119565
|
68
68
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=GsvN7XMWAmCFHqC0YMZsjsb0myL-7ahuzHN4jPNn0zc,27623
|
69
69
|
worker_automate_hub/worker.py,sha256=vkl_x7gSo6nQlhSBLwRkGx6LEONnYptfBaGxOy1ZLsE,4634
|
70
|
-
worker_automate_hub-0.4.
|
71
|
-
worker_automate_hub-0.4.
|
72
|
-
worker_automate_hub-0.4.
|
73
|
-
worker_automate_hub-0.4.
|
70
|
+
worker_automate_hub-0.4.379.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
71
|
+
worker_automate_hub-0.4.379.dist-info/METADATA,sha256=tflmkdKXkI2QSDRkh5t7NZFImWWpmY7FOL5qJhV5PtQ,2895
|
72
|
+
worker_automate_hub-0.4.379.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
73
|
+
worker_automate_hub-0.4.379.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.4.378.dist-info → worker_automate_hub-0.4.379.dist-info}/entry_points.txt
RENAMED
File without changes
|