worker-automate-hub 0.4.331__py3-none-any.whl → 0.4.332__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -2332,29 +2332,21 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
2332
2332
 
2333
2333
  if "Mensagem do Banco de Dados" in control_text:
2334
2334
  capturar_proxima_mensagem = True
2335
-
2336
- elif "XML já foi importado anteriormente" in control_text():
2335
+
2336
+ elif capturar_proxima_mensagem:
2337
2337
  control_text = control_text.replace("\n", "").replace("\r","")
2338
2338
  return RpaRetornoProcessoDTO(
2339
2339
  sucesso=False,
2340
- retorno=f"Nota descartada: {control_text}... \n",
2341
- status=RpaHistoricoStatusEnum.Descartado,
2340
+ retorno=f"Erro do banco de dados: {control_text} \n",
2341
+ status=RpaHistoricoStatusEnum.Falha,
2342
2342
  )
2343
2343
 
2344
- elif capturar_proxima_mensagem:
2345
- if 'nota fiscal ja' in control_text.lower():
2346
- return RpaRetornoProcessoDTO(
2344
+ elif "XML já foi importado anteriormente" in control_text:
2345
+ return RpaRetornoProcessoDTO(
2347
2346
  sucesso=False,
2348
- retorno=f"Nota descartada: {control_text}... \n",
2347
+ retorno=f"Nota descartada {control_text}... \n",
2349
2348
  status=RpaHistoricoStatusEnum.Descartado,
2350
2349
  )
2351
- else:
2352
- control_text = control_text.replace("\n", "").replace("\r","")
2353
- return RpaRetornoProcessoDTO(
2354
- sucesso=False,
2355
- retorno=f"Erro do banco de dados: {control_text}",
2356
- status=RpaHistoricoStatusEnum.Falha,
2357
- )
2358
2350
 
2359
2351
  else:
2360
2352
  control_text = control_text.replace("\n", "").replace("\r","")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.331
3
+ Version: 0.4.332
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
@@ -64,10 +64,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
64
64
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
65
65
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
66
66
  worker_automate_hub/utils/updater.py,sha256=0LR6Xpe3HZk-xu-trH7vKRhP5FXp0nhp1qxtygE2Jps,7280
67
- worker_automate_hub/utils/util.py,sha256=Wt37CS6zt5be0_mGy8iIeqnYdObUKbHWvj7agcnYx1U,118884
67
+ worker_automate_hub/utils/util.py,sha256=_3_aEkbSKJuhRgePepDpoouB67XZj6rhawyTA8osFfI,118478
68
68
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=VowHS7r3wRv3f-KAyJAqZLhe7Dkwj8CVaWGNNAQP9YY,27389
69
69
  worker_automate_hub/worker.py,sha256=vkl_x7gSo6nQlhSBLwRkGx6LEONnYptfBaGxOy1ZLsE,4634
70
- worker_automate_hub-0.4.331.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
- worker_automate_hub-0.4.331.dist-info/METADATA,sha256=lTXYhsLmlZ0W39Lgf5b8A8pCKHebJDL7rKbSJ23lqiA,2884
72
- worker_automate_hub-0.4.331.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
- worker_automate_hub-0.4.331.dist-info/RECORD,,
70
+ worker_automate_hub-0.4.332.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
+ worker_automate_hub-0.4.332.dist-info/METADATA,sha256=0ebUooItl0a_R-4XfBcVPE6AyE6jvpiQArLjkqpR2OQ,2884
72
+ worker_automate_hub-0.4.332.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
+ worker_automate_hub-0.4.332.dist-info/RECORD,,