worker-automate-hub 0.5.747__py3-none-any.whl → 0.5.748__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.
@@ -109,7 +109,7 @@ async def extracao_saldo_estoque(task: RpaProcessoEntradaDTO):
109
109
  func=lambda: Application().connect(class_name="TFrmPreviewRelatorio"),
110
110
  )
111
111
 
112
- await worker_sleep(2)
112
+ await worker_sleep(10)
113
113
 
114
114
  # Conecta à janela Preview Relatorio
115
115
  app = Application().connect(class_name="TFrmPreviewRelatorio")
@@ -153,7 +153,7 @@ async def extracao_saldo_estoque(task: RpaProcessoEntradaDTO):
153
153
  await worker_sleep(2)
154
154
 
155
155
  # Clicar em Salvar
156
- btn_salvar = main_window.child_window(
156
+ main_window.child_window(
157
157
  class_name="TBitBtn", found_index=1
158
158
  ).click_input()
159
159
 
@@ -176,15 +176,16 @@ async def extracao_saldo_estoque(task: RpaProcessoEntradaDTO):
176
176
  await worker_sleep(2)
177
177
 
178
178
  # Clicar em ok para salvar
179
- btn_ok = main_window.child_window(
179
+ main_window.child_window(
180
180
  class_name="Button", found_index=0
181
181
  ).click_input()
182
182
 
183
- await worker_sleep(5)
183
+ await worker_sleep(20)
184
184
 
185
- caminho_img = r"assets\\extracao_relatorios\\janela_printing.png"
185
+ # caminho_img = r"assets\\extracao_relatorios\\janela_printing.png"
186
186
 
187
187
  # Aguarda até a janela com título "Printing" (ou "Salvando...") fechar
188
+
188
189
  try:
189
190
  app = Application().connect(title_re="Printing") # conecta se existir
190
191
  janela = app.window(title_re="Printing")
@@ -198,6 +199,7 @@ async def extracao_saldo_estoque(task: RpaProcessoEntradaDTO):
198
199
 
199
200
  nome_com_extensao = f"saldo_estoque_{periodo_format}_{filial}.xlsx"
200
201
  # lê o arquivo
202
+ print(caminho_arquivo)
201
203
  with open(f"{caminho_arquivo}", "rb") as file:
202
204
  file_bytes = io.BytesIO(file.read())
203
205
 
@@ -221,9 +223,6 @@ async def extracao_saldo_estoque(task: RpaProcessoEntradaDTO):
221
223
  status=RpaHistoricoStatusEnum.Falha,
222
224
  tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)],
223
225
  )
224
-
225
- print("")
226
-
227
226
  except Exception as ex:
228
227
  retorno = f"Erro Processo Fechamento Balancete: {str(ex)}"
229
228
  logger.error(retorno)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: worker-automate-hub
3
- Version: 0.5.747
3
+ Version: 0.5.748
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
@@ -70,7 +70,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_9000.py,sha256=0mOmS28tQKF5m7vMz
70
70
  worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=nV0iLoip2FH2-FhLmhX3nPqsfl_MPufZ3E5Q5krJvdc,3544
71
71
  worker_automate_hub/tasks/jobs/extracao_fechamento_contabil.py,sha256=6Kr5DKjKLqtFvGzyiXtt7xrQsuU898l8pQXDq9C6AX8,19567
72
72
  worker_automate_hub/tasks/jobs/extracao_fechamento_emsys.py,sha256=-T2nZUDiFrUGm_KLxJd_4qcrageDxVpWW3KAAniLFC4,21448
73
- worker_automate_hub/tasks/jobs/extracao_saldo_estoque.py,sha256=APjMgFdvSg_HGsEwPDnZ6LNbXq773lwcxPo0J9CmmQY,8244
73
+ worker_automate_hub/tasks/jobs/extracao_saldo_estoque.py,sha256=WzHRa37QXAx1NvV9605ZhBUR3-Pnrc7Q0lUpsycetDI,8245
74
74
  worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
75
75
  worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=tWUmYy3Zhi3JEt8AoqTsWpU-wbf5-OxhCrTOooh1WH4,15616
76
76
  worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=FAmcCqKVjedf7wIped8XRLIZ9S3oWc6fakF-r1Zm0kg,12637
@@ -100,7 +100,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
100
100
  worker_automate_hub/utils/util.py,sha256=gFe4yrF2G6sToawOzlgRFWEJKlqtWYp4lXQFKgNQpZg,207420
101
101
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=TOXKSHOPxy8N3-ROpTGjNIHstX0i2b8qekcj1tRvjG8,38174
102
102
  worker_automate_hub/worker.py,sha256=uhZ3f-iaQ1i8cANbljp50vkYl-Xm0_sHtjwwF_2y72o,7191
103
- worker_automate_hub-0.5.747.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
104
- worker_automate_hub-0.5.747.dist-info/METADATA,sha256=M1ouU11jhvWbjSSTyHYSskbCFu0eldPZQaOoQCT1TWE,3049
105
- worker_automate_hub-0.5.747.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
106
- worker_automate_hub-0.5.747.dist-info/RECORD,,
103
+ worker_automate_hub-0.5.748.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
104
+ worker_automate_hub-0.5.748.dist-info/METADATA,sha256=BTjCKAxQC9VNo4QM_MYmiYXLqF42glxYmhfQ0mKqfrc,3049
105
+ worker_automate_hub-0.5.748.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
106
+ worker_automate_hub-0.5.748.dist-info/RECORD,,