worker-automate-hub 0.5.694__py3-none-any.whl → 0.5.695__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py +2 -2
- worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py +17 -13
- {worker_automate_hub-0.5.694.dist-info → worker_automate_hub-0.5.695.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.694.dist-info → worker_automate_hub-0.5.695.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.694.dist-info → worker_automate_hub-0.5.695.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.694.dist-info → worker_automate_hub-0.5.695.dist-info}/entry_points.txt +0 -0
@@ -442,8 +442,8 @@ async def extracao_fechamento_contabil(
|
|
442
442
|
with open(full_path, "rb") as file:
|
443
443
|
file_bytes = io.BytesIO(file.read())
|
444
444
|
try:
|
445
|
-
console.print("Enviando Json para data lake")
|
446
|
-
await send_file_to_datalake(directory, file_bytes, filename, "json")
|
445
|
+
# console.print("Enviando Json para data lake")
|
446
|
+
# await send_file_to_datalake(directory, file_bytes, filename, "json")
|
447
447
|
sended_to_datalake = True
|
448
448
|
except Exception as e:
|
449
449
|
console.print(f"Erro ao enviar o arquivo: {e}", style="bold red")
|
@@ -291,19 +291,25 @@ async def extracao_fechamento_emsys(
|
|
291
291
|
await worker_sleep(3)
|
292
292
|
|
293
293
|
# Clicar em gerar relatório
|
294
|
-
console.print("Clicar em gerar relatório")
|
295
|
-
btn_gerar_relatorio = main_window.child_window(
|
296
|
-
|
294
|
+
console.print("Clicar em gerar relatório")
|
295
|
+
btn_gerar_relatorio = main_window.child_window(
|
296
|
+
class_name="TBitBtn", found_index=0
|
297
|
+
).click_input()
|
298
|
+
|
297
299
|
await worker_sleep(7)
|
298
300
|
console.print("Verificar se existem dados")
|
299
301
|
|
300
302
|
try:
|
301
|
-
nao_existe_dados =
|
303
|
+
nao_existe_dados = rf"{ASSETS_BASE_PATH}\extracao_fechamento_emsys\nao_existem_dados.png"
|
302
304
|
|
303
305
|
for tentativa in range(3):
|
304
|
-
console.print(
|
305
|
-
|
306
|
-
|
306
|
+
console.print(
|
307
|
+
f"Tentativa {tentativa + 1}: Clicar em 'Gerar Relatório'"
|
308
|
+
)
|
309
|
+
|
310
|
+
btn_gerar_relatorio = main_window.child_window(
|
311
|
+
class_name="TBitBtn", found_index=0
|
312
|
+
)
|
307
313
|
if btn_gerar_relatorio.exists(timeout=5):
|
308
314
|
btn_gerar_relatorio.click_input()
|
309
315
|
await worker_sleep(5)
|
@@ -331,7 +337,7 @@ async def extracao_fechamento_emsys(
|
|
331
337
|
)
|
332
338
|
|
333
339
|
await worker_sleep(5)
|
334
|
-
break
|
340
|
+
break
|
335
341
|
|
336
342
|
# Verifica se apareceu a janela "Salvar para arquivo"
|
337
343
|
try:
|
@@ -352,8 +358,8 @@ async def extracao_fechamento_emsys(
|
|
352
358
|
"Botão 'Gerar Relatório' não encontrado.", style="bold red"
|
353
359
|
)
|
354
360
|
break
|
355
|
-
except:
|
356
|
-
await worker_sleep(5)
|
361
|
+
except:
|
362
|
+
await worker_sleep(5)
|
357
363
|
##### Janela Salvar para arquivo #####
|
358
364
|
console.print(f"Dados encontrados para {mnemonico}")
|
359
365
|
app = Application(backend="win32").connect(
|
@@ -522,9 +528,7 @@ async def extracao_fechamento_emsys(
|
|
522
528
|
with open(full_path, "rb") as file:
|
523
529
|
file_bytes = io.BytesIO(file.read())
|
524
530
|
try:
|
525
|
-
send_file_request = await send_file_to_datalake(
|
526
|
-
directory, file_bytes, filename, "json"
|
527
|
-
)
|
531
|
+
# send_file_request = await send_file_to_datalake(directory, file_bytes, filename, "json")
|
528
532
|
os.remove(full_path)
|
529
533
|
return RpaRetornoProcessoDTO(
|
530
534
|
sucesso=True,
|
@@ -68,8 +68,8 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=Y20hsr46YbfkHPaSd
|
|
68
68
|
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=ZYE2YmQJ9954Uuc9fiSykGi0ws_NPXs8ex244y20P44,64642
|
69
69
|
worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=cDMzDGcylhg9pwtCPmZ82YItPS05PWcPtfeeC2WGrpA,65507
|
70
70
|
worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
|
71
|
-
worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=
|
72
|
-
worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256
|
71
|
+
worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=LQLb3Scd21lcWrWxisLxnRY1IwjAMQspqYjIol1otuc,19561
|
72
|
+
worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=-T2nZUDiFrUGm_KLxJd_4qcrageDxVpWW3KAAniLFC4,21448
|
73
73
|
worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
|
74
74
|
worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=SOs2mORBJqHs089ApbLaPJVRXM7wWhf0e99URXqPlpQ,15020
|
75
75
|
worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=zu92tRCvKPK0U6IGGF28ST-kERohJcNbys-DWk0tIco,12555
|
@@ -98,7 +98,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
98
98
|
worker_automate_hub/utils/util.py,sha256=xA13nQqZglwkvfAKH18Unv4UoZUyvL58CacSrzUpYTw,206352
|
99
99
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=L_z1Aps6BFWl-6_Ibm45vDid1S4kFDz5O78N2uO1Rq0,36458
|
100
100
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
101
|
-
worker_automate_hub-0.5.
|
102
|
-
worker_automate_hub-0.5.
|
103
|
-
worker_automate_hub-0.5.
|
104
|
-
worker_automate_hub-0.5.
|
101
|
+
worker_automate_hub-0.5.695.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
102
|
+
worker_automate_hub-0.5.695.dist-info/METADATA,sha256=UkepQY95t0g-EImjrDBsodinIc6infPZAjV9Ou6rFxE,3049
|
103
|
+
worker_automate_hub-0.5.695.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
104
|
+
worker_automate_hub-0.5.695.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.694.dist-info → worker_automate_hub-0.5.695.dist-info}/entry_points.txt
RENAMED
File without changes
|