worker-automate-hub 0.5.615__py3-none-any.whl → 0.5.617__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.
@@ -334,10 +334,10 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
334
334
 
335
335
  if len(itens_arla) == len(itens):
336
336
  for item in itens_to_select:
337
- if '1202' in item and (('s/ est' in item.lower() or 's/est' in item.lower())):
337
+ if ('1202' in item and ('s/ est' in item.lower() or 's/est' in item.lower()) and ('c/ fin' in item.lower() or 'c/fin' in item.lower())):
338
338
  nop_to_be_select = item
339
339
  break
340
- elif '2202' in item and (('s/ est' in item.lower() or 's/est' in item.lower())):
340
+ elif '2202' in item and (('s/ est' in item.lower() or 's/est' in item.lower()) and ('c/ fin' in item.lower() or 'c/fin' in item.lower())):
341
341
  nop_to_be_select = item
342
342
  break
343
343
  else:
@@ -291,28 +291,22 @@ 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
- class_name="TBitBtn", found_index=0
297
- ).click_input()
298
-
299
- await worker_sleep(5)
294
+ console.print("Clicar em gerar relatório")
295
+ btn_gerar_relatorio = main_window.child_window(class_name="TBitBtn", found_index=0).click_input()
296
+
297
+ await worker_sleep(7)
300
298
  console.print("Verificar se existem dados")
301
299
 
302
300
  try:
303
- nao_existe_dados = rf"{ASSETS_BASE_PATH}\extracao_fechamento_emsys\nao_existem_dados.png"
301
+ nao_existe_dados = fr"{ASSETS_BASE_PATH}\extracao_fechamento_emsys\nao_existem_dados.png"
304
302
 
305
303
  for tentativa in range(3):
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
- )
313
- if btn_gerar_relatorio.exists(timeout=2):
304
+ console.print(f"Tentativa {tentativa + 1}: Clicar em 'Gerar Relatório'")
305
+
306
+ btn_gerar_relatorio = main_window.child_window(class_name="TBitBtn", found_index=0)
307
+ if btn_gerar_relatorio.exists(timeout=5):
314
308
  btn_gerar_relatorio.click_input()
315
- await worker_sleep(3)
309
+ await worker_sleep(5)
316
310
 
317
311
  # Verifica se apareceu a imagem de "sem dados"
318
312
  localizacao = pyautogui.locateOnScreen(
@@ -336,8 +330,8 @@ async def extracao_fechamento_emsys(
336
330
  style="bold red",
337
331
  )
338
332
 
339
- await worker_sleep(2)
340
- break
333
+ await worker_sleep(5)
334
+ break
341
335
 
342
336
  # Verifica se apareceu a janela "Salvar para arquivo"
343
337
  try:
@@ -358,8 +352,8 @@ async def extracao_fechamento_emsys(
358
352
  "Botão 'Gerar Relatório' não encontrado.", style="bold red"
359
353
  )
360
354
  break
361
- except:
362
- await worker_sleep(2)
355
+ except:
356
+ await worker_sleep(5)
363
357
  ##### Janela Salvar para arquivo #####
364
358
  console.print(f"Dados encontrados para {mnemonico}")
365
359
  app = Application(backend="win32").connect(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.615
3
+ Version: 0.5.617
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -42,7 +42,7 @@ worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgE
42
42
  worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53tKXgCDI05nGLGclU,603
43
43
  worker_automate_hub/tasks/jobs/cte_xml.py,sha256=CdDcDRjCJTU2DV0KAglqgCVb13ahMqzYdmaeJRKcR0o,15038
44
44
  worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
45
- worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=nljsP1WZ5ENY_aSbHv-rNJ3lcuRJSv2GB43t2Tgv3Ww,252848
45
+ worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=d99rjz2fhz_5eGfs9ldLXe2xDmOD66_JcFQxnAVoU50,252964
46
46
  worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
47
47
  worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
48
48
  worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
@@ -68,7 +68,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=VJ-2g7tuqbAICOarJpAh
68
68
  worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=paUghcOOCWRA2qVmU89YmThRTm8fMWb2QkE6tM-_MC0,65504
69
69
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
70
70
  worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=jSoDGT6SU_5PKItpLQJyJIGrFAwYFNawO9vVNhjovIw,19557
71
- worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=sdgl5CV_phGa3ZC_IUOpl611_h0BPyVTEjaoeaXfdi8,21478
71
+ worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=ueYevtUf0Tdr60VdXQiBmqbrQRmixQ3ze0GVYJmzFEg,21418
72
72
  worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
73
73
  worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=SOs2mORBJqHs089ApbLaPJVRXM7wWhf0e99URXqPlpQ,15020
74
74
  worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=zu92tRCvKPK0U6IGGF28ST-kERohJcNbys-DWk0tIco,12555
@@ -96,7 +96,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
96
96
  worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
97
97
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
98
98
  worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
99
- worker_automate_hub-0.5.615.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
- worker_automate_hub-0.5.615.dist-info/METADATA,sha256=XYODKOrT2vpRhOcvGO1YgOxcxnTMFIYg9gwiIY2QVEI,3049
101
- worker_automate_hub-0.5.615.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
- worker_automate_hub-0.5.615.dist-info/RECORD,,
99
+ worker_automate_hub-0.5.617.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
100
+ worker_automate_hub-0.5.617.dist-info/METADATA,sha256=FriZI6RRGiNISe02qNVHmperXqms245hbFjYdQw3HK8,3049
101
+ worker_automate_hub-0.5.617.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
102
+ worker_automate_hub-0.5.617.dist-info/RECORD,,