worker-automate-hub 0.5.34__py3-none-any.whl → 0.5.35__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/utils/util.py +1 -1
- worker_automate_hub/utils/utils_nfe_entrada.py +16 -9
- {worker_automate_hub-0.5.34.dist-info → worker_automate_hub-0.5.35.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.34.dist-info → worker_automate_hub-0.5.35.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.34.dist-info → worker_automate_hub-0.5.35.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.34.dist-info → worker_automate_hub-0.5.35.dist-info}/entry_points.txt +0 -0
@@ -2408,7 +2408,7 @@ async def error_after_xml_imported() -> RpaRetornoProcessoDTO:
|
|
2408
2408
|
return RpaRetornoProcessoDTO(
|
2409
2409
|
sucesso=False,
|
2410
2410
|
retorno=f"Erro do banco de dados: {control_text} \n",
|
2411
|
-
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.
|
2411
|
+
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
2412
2412
|
)
|
2413
2413
|
|
2414
2414
|
elif "XML já foi importado anteriormente" in control_text:
|
@@ -627,15 +627,22 @@ class EMSys:
|
|
627
627
|
)
|
628
628
|
|
629
629
|
async def get_xml(self, xml_file):
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
630
|
+
try:
|
631
|
+
username = getpass.getuser()
|
632
|
+
xml_name = f"{xml_file}.xml"
|
633
|
+
path_to_xml = f"C:\\Users\\{username}\\Downloads\\{xml_name}"
|
634
|
+
pyautogui.click(722, 792)
|
635
|
+
await worker_sleep(2)
|
636
|
+
pyautogui.write(path_to_xml)
|
637
|
+
await worker_sleep(2)
|
638
|
+
pyautogui.hotkey("enter")
|
639
|
+
await worker_sleep(2)
|
640
|
+
except Exception as error:
|
641
|
+
return RpaRetornoProcessoDTO(
|
642
|
+
sucesso=False,
|
643
|
+
retorno=f"O xml {xml_name} não foi encontrado em {path_to_xml}",
|
644
|
+
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
645
|
+
)
|
639
646
|
|
640
647
|
async def delete_xml(self, nfe_key: str) -> None:
|
641
648
|
"""
|
@@ -72,10 +72,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
|
|
72
72
|
worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
|
73
73
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
74
74
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
75
|
-
worker_automate_hub/utils/util.py,sha256=
|
76
|
-
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=
|
75
|
+
worker_automate_hub/utils/util.py,sha256=pJBvcZVA8TsrTndUDLx0lgUKoa20aYCAvvkpNizriPg,129994
|
76
|
+
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=ZTb1XoKWZY7coXt06iIE8KI56N6AguhZv5DEPX2qUu8,31862
|
77
77
|
worker_automate_hub/worker.py,sha256=CT-poyP1ZYvubArYsnnNd9oJ53SPaDwgr6p6keS3nI4,6248
|
78
|
-
worker_automate_hub-0.5.
|
79
|
-
worker_automate_hub-0.5.
|
80
|
-
worker_automate_hub-0.5.
|
81
|
-
worker_automate_hub-0.5.
|
78
|
+
worker_automate_hub-0.5.35.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
79
|
+
worker_automate_hub-0.5.35.dist-info/METADATA,sha256=DZ8L9CZykVAmUGYs3tQsCWRm3MoYB5kXJgrHH-fPXMM,2894
|
80
|
+
worker_automate_hub-0.5.35.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
81
|
+
worker_automate_hub-0.5.35.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.34.dist-info → worker_automate_hub-0.5.35.dist-info}/entry_points.txt
RENAMED
File without changes
|