worker-automate-hub 0.5.809__py3-none-any.whl → 0.5.811__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.
@@ -331,8 +331,8 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
331
331
  console.print("Aguardar o término de carregar")
332
332
  # imagem = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\abertura_livros\livros_incluidos.png"
333
333
  imagem = "assets\\abertura_livros\\livros_incluidos.png"
334
-
335
- tempo_limite = 1200 # 20 minutos
334
+
335
+ tempo_limite = 6600 # 1h
336
336
  intervalo = 2 # segundos entre as verificações
337
337
 
338
338
  inicio = time.time()
@@ -375,7 +375,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
375
375
  # img_dialog = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\abertura_livros\notas_rejeitadas.png"
376
376
  img_dialog = "assets\\abertura_livros\\notas_rejeitadas.png"
377
377
  if os.path.exists(img_dialog):
378
- caixa = pyautogui.locateOnScreen(img_dialog, confidence=0.86, grayscale=True)
378
+ caixa = pyautogui.locateOnScreen(img_dialog, confidence=0.9, grayscale=True)
379
379
  if caixa:
380
380
  print("Janela 'notas rejeitadas' detectada por imagem.")
381
381
  region = (caixa.left, caixa.top, caixa.width, caixa.height)
@@ -387,16 +387,16 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
387
387
  console.print("Janela de confirmação 'TMessageForm' encontrada.")
388
388
  form.set_focus()
389
389
  form.child_window(class_name="TButton", found_index=1).click_input()
390
- print("Clicou no botão de confirmação.")
390
+ print("Clicou no botão de sim.")
391
391
 
392
392
  await worker_sleep(5)
393
393
 
394
394
  # img_dialog = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\abertura_livros\gerar_rel_notas_rejeitadas.png"
395
395
  img_dialog = "assets\\abertura_livros\\gerar_rel_notas_rejeitadas.png"
396
396
  if os.path.exists(img_dialog):
397
- caixa = pyautogui.locateOnScreen(img_dialog, confidence=0.86, grayscale=True)
397
+ caixa = pyautogui.locateOnScreen(img_dialog, confidence=0.9, grayscale=True)
398
398
  if caixa:
399
- print("Janela 'notas rejeitadas' detectada por imagem.")
399
+ print("Janela 'notas relatorios rejeitadas' detectada por imagem.")
400
400
  region = (caixa.left, caixa.top, caixa.width, caixa.height)
401
401
 
402
402
  app_msg = Application().connect(
@@ -406,11 +406,10 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
406
406
  console.print("Janela de confirmação 'TMessageForm' encontrada.")
407
407
  form.set_focus()
408
408
  form.child_window(class_name="TButton", found_index=0).click_input()
409
- print("Clicou no botão de confirmação.")
409
+ print("Clicou no botão de não.")
410
410
  except:
411
411
  pass
412
412
 
413
-
414
413
  # 3. Verifica se a janela do relatório está aberta
415
414
  try:
416
415
  app_report = Application().connect(
@@ -632,4 +631,3 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
632
631
  status=RpaHistoricoStatusEnum.Falha,
633
632
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
634
633
  )
635
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: worker-automate-hub
3
- Version: 0.5.809
3
+ Version: 0.5.811
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
@@ -36,7 +36,7 @@ worker_automate_hub/models/dto/rpa_sap_dto.py,sha256=eovdvKCtVIhRct3PL98KjsdlngL
36
36
  worker_automate_hub/models/dto/rpa_sistema_dto.py,sha256=sLkmJei8x6sl-1-IXUKDmYQuKx0sotYQREPyhQqPmRg,161
37
37
  worker_automate_hub/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  worker_automate_hub/tasks/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py,sha256=HYIp3eYyMc2JsMw9VGlgjxSeuQB3400_LLTyxJi9VYE,25203
39
+ worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py,sha256=ApU70jabSusQNVxUSy2N_W9BZflSN29ui1BXjAon7wE,25193
40
40
  worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=UkLWTC5Ub2qBb0yY-8IZ0DLLOVJOfNTq_z9krx_t25Q,29476
41
41
  worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgEjpjifReCTBDqxH-U,11719
42
42
  worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53tKXgCDI05nGLGclU,603
@@ -103,7 +103,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
103
103
  worker_automate_hub/utils/util.py,sha256=HXXGEEeGQd-gD_u8W0_aPYVDiMB9bKF-rJBl-m6RiRM,210781
104
104
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=F7jk95LpDwl5WfaQXahCA5yDdnySnWdctDqczHXwGqE,38195
105
105
  worker_automate_hub/worker.py,sha256=zEnYUrm5kY2cHbbee15QJkwkx4euD2SB2zRvUIbjS90,6850
106
- worker_automate_hub-0.5.809.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
107
- worker_automate_hub-0.5.809.dist-info/METADATA,sha256=bLZrGpEhfMwwktgBq0MdJIyvf3mbeZ9C9dwK2oxDk_8,3100
108
- worker_automate_hub-0.5.809.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
109
- worker_automate_hub-0.5.809.dist-info/RECORD,,
106
+ worker_automate_hub-0.5.811.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
107
+ worker_automate_hub-0.5.811.dist-info/METADATA,sha256=_7Go5Mn0df6UqEnwpSBTJQDvOiD2iajfzltFOtGkNTc,3100
108
+ worker_automate_hub-0.5.811.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
109
+ worker_automate_hub-0.5.811.dist-info/RECORD,,