worker-automate-hub 0.5.688__py3-none-any.whl → 0.5.689__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/integracao_contabil_generica.py +17 -13
- {worker_automate_hub-0.5.688.dist-info → worker_automate_hub-0.5.689.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.688.dist-info → worker_automate_hub-0.5.689.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.688.dist-info → worker_automate_hub-0.5.689.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.688.dist-info → worker_automate_hub-0.5.689.dist-info}/entry_points.txt +0 -0
@@ -294,7 +294,9 @@ async def integracao_contabil_generica(
|
|
294
294
|
imagem_finalizada = "assets\\integracao_contabil\\pesquisa_finalizada.png"
|
295
295
|
|
296
296
|
if not os.path.exists(imagem_finalizada):
|
297
|
-
raise FileNotFoundError(
|
297
|
+
raise FileNotFoundError(
|
298
|
+
f"Imagem não encontrada no caminho: {imagem_finalizada}"
|
299
|
+
)
|
298
300
|
|
299
301
|
print("Aguardando a imagem aparecer...")
|
300
302
|
|
@@ -304,7 +306,9 @@ async def integracao_contabil_generica(
|
|
304
306
|
for tentativa in range(1, max_tentativas + 1):
|
305
307
|
print(f"Tentativa {tentativa} de {max_tentativas}...")
|
306
308
|
try:
|
307
|
-
localizacao = pyautogui.locateOnScreen(
|
309
|
+
localizacao = pyautogui.locateOnScreen(
|
310
|
+
imagem_finalizada, confidence=0.85
|
311
|
+
)
|
308
312
|
if localizacao:
|
309
313
|
console.print("Imagem encontrada!")
|
310
314
|
break
|
@@ -312,17 +316,17 @@ async def integracao_contabil_generica(
|
|
312
316
|
print("Imagem não encontrada ainda.")
|
313
317
|
except Exception as e:
|
314
318
|
print(f"Erro ao verificar a imagem: {e}")
|
315
|
-
|
319
|
+
|
316
320
|
await worker_sleep(20)
|
317
321
|
|
318
322
|
if not localizacao:
|
319
323
|
console.print("Imagem não foi encontrada após 300 tentativas")
|
320
324
|
return RpaRetornoProcessoDTO(
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
325
|
+
sucesso=False,
|
326
|
+
retorno="Imagem de pesquisa finalizada não encontrada, favor verificar.",
|
327
|
+
status=RpaHistoricoStatusEnum.Falha,
|
328
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)],
|
329
|
+
)
|
326
330
|
except Exception as e:
|
327
331
|
console.print(f"Erro ao procurar imagem: {e}")
|
328
332
|
|
@@ -451,11 +455,6 @@ async def integracao_contabil_generica(
|
|
451
455
|
if err:
|
452
456
|
console.print(f"[red]Erro encontrado:[/red] {mensagem}")
|
453
457
|
|
454
|
-
# Clique no botão OK da mensagem de erro antes de retornar
|
455
|
-
msg_box.child_window(
|
456
|
-
class_name="TBitBtn", found_index=0
|
457
|
-
).click_input()
|
458
|
-
|
459
458
|
return RpaRetornoProcessoDTO(
|
460
459
|
sucesso=False,
|
461
460
|
retorno=mensagem,
|
@@ -463,6 +462,11 @@ async def integracao_contabil_generica(
|
|
463
462
|
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)],
|
464
463
|
)
|
465
464
|
|
465
|
+
# Clique no botão OK da mensagem de erro antes de retornar
|
466
|
+
msg_box.child_window(
|
467
|
+
class_name="TBitBtn", found_index=0
|
468
|
+
).click_input()
|
469
|
+
|
466
470
|
await worker_sleep(1)
|
467
471
|
|
468
472
|
try:
|
@@ -78,7 +78,7 @@ worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py,sha256=mmBW7KetUeRjiZkjn
|
|
78
78
|
worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py,sha256=QzK2aG5d9pmFbb8cTaNm3LWf5NMkmCvBkgo70gcLu0c,14781
|
79
79
|
worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos_novo.py,sha256=5-wn583Cm0_NJ3TcVpYcurBTRxgwW6MU8WqaYawLS2k,21345
|
80
80
|
worker_automate_hub/tasks/jobs/integracao_contabil.py,sha256=psoIU0tjtTJq2W8aGXjXrfkAOYlIpUtHZyNolI7dp-0,16263
|
81
|
-
worker_automate_hub/tasks/jobs/integracao_contabil_generica.py,sha256=
|
81
|
+
worker_automate_hub/tasks/jobs/integracao_contabil_generica.py,sha256=u1EsPsrTi4ypfGxSQ5nivc0PiVO2E4rjImLUbu5Pj9g,21572
|
82
82
|
worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py,sha256=0mlu-oPwRd9qCocB-6tWsEI0-wd48mkBJn5juYqOAX8,40788
|
83
83
|
worker_automate_hub/tasks/jobs/lancamento_rateio.py,sha256=0cvbpuJiHl5mca5gpZudX7uQY5Rqe5xzwt6juQcMhjo,15875
|
84
84
|
worker_automate_hub/tasks/jobs/login_emsys.py,sha256=dO9S027qRTtjOfytF6IWO-m6hDld8kZqOVAsn91l1YA,5684
|
@@ -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.689.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
102
|
+
worker_automate_hub-0.5.689.dist-info/METADATA,sha256=S8Rrbp5bj8VJnTLgmI142UR6fefZnfcuHyYRpmuiqk0,3049
|
103
|
+
worker_automate_hub-0.5.689.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
104
|
+
worker_automate_hub-0.5.689.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.688.dist-info → worker_automate_hub-0.5.689.dist-info}/entry_points.txt
RENAMED
File without changes
|