worker-automate-hub 0.5.75__py3-none-any.whl → 0.5.76__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -219,7 +219,7 @@ async def gerar_nosso_numero(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
219
219
  boleto_argenta = None
220
220
  max_trys = 5
221
221
  trys = 0
222
- while boleto_argenta != None and trys <= max_trys:
222
+ while boleto_argenta == None and trys <= max_trys:
223
223
  try:
224
224
  app = Application().connect(title="BOLETO ARGENTA_1")
225
225
  boleto_argenta = app["BOLETO ARGENTA_1"]
@@ -231,6 +231,15 @@ async def gerar_nosso_numero(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
231
231
 
232
232
  trys += 1
233
233
  await worker_sleep(60)
234
+
235
+ #Verifica se tela Boleto Argenta foi fechada
236
+ try:
237
+ app = Application().connect(title="BOLETO ARGENTA_1")
238
+ boleto_argenta = app["BOLETO ARGENTA_1"]
239
+ console.log("Boleto Argenta sendo fechado", style="bold green")
240
+ pyautogui.click(1147, 446)
241
+ except:
242
+ console.print("Tela de boleto Argenta ainda não encontrada", style="bold yellow")
234
243
 
235
244
  await worker_sleep(5)
236
245
  #Confirmando tela de impressão
@@ -241,7 +250,7 @@ async def gerar_nosso_numero(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
241
250
 
242
251
  await worker_sleep(5)
243
252
 
244
- if boleto_argenta:
253
+ if boleto_argenta != None:
245
254
  return RpaRetornoProcessoDTO(
246
255
  sucesso=True,
247
256
  retorno="Nosso número gerado com sucesso!",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.75
3
+ Version: 0.5.76
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
@@ -58,7 +58,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=iXbkjdg02r3tdt3eH
58
58
  worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=vUj25yHxkCNhpyOU5Vk81gsYcTTH1TJ3yn-b8N00JfQ,52857
59
59
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
60
60
  worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=8GVImU7EnncCSxbbuEC4-EBE8oGTk6CJ-HFNqJ5OiMs,5564
61
- worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=fnTXtf6TKtmiChqzap1BdAfBpnQv2l05-3VS3xUmbKg,10980
61
+ worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=jw2aDLKTXKWfyaXaQubNDVeZ-5htgnxz7H6snB-dvbE,11417
62
62
  worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=QBGm6eS5JghgNWNqZlk1g2a2iV8LnBLiOTBBL3Giet0,4181
63
63
  worker_automate_hub/tasks/jobs/login_emsys.py,sha256=scdKsseFOL-7UQ5D743VaZZzWBKaEfq0XzYNmROUOgE,5703
64
64
  worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=jcfhppG-MhuZYKEIt8O8NaJfdV3figNXrKt4zPqeQi0,5644
@@ -76,7 +76,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
76
76
  worker_automate_hub/utils/util.py,sha256=_uPyZOzb8puEKXUmcFkaf7HesJBs8yITRQkOqViyugU,161430
77
77
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=iYpOs7fb7C3bY61QHySr00xlDNzrrCP0zaexOpBPuaQ,31930
78
78
  worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
79
- worker_automate_hub-0.5.75.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
- worker_automate_hub-0.5.75.dist-info/METADATA,sha256=xLA9f0deLqIOapxwpCSIFHQ9tSCHs0fqZ_ENg_6JN2Y,2894
81
- worker_automate_hub-0.5.75.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
- worker_automate_hub-0.5.75.dist-info/RECORD,,
79
+ worker_automate_hub-0.5.76.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
80
+ worker_automate_hub-0.5.76.dist-info/METADATA,sha256=brhcPkfi3EemZrMR5ZkrMv7dRMj3ZRytifll6oU2ojI,2894
81
+ worker_automate_hub-0.5.76.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
82
+ worker_automate_hub-0.5.76.dist-info/RECORD,,