worker-automate-hub 0.5.789__py3-none-any.whl → 0.5.790__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.
Potentially problematic release.
This version of worker-automate-hub might be problematic. Click here for more details.
- worker_automate_hub/utils/util.py +25 -21
- {worker_automate_hub-0.5.789.dist-info → worker_automate_hub-0.5.790.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.789.dist-info → worker_automate_hub-0.5.790.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.789.dist-info → worker_automate_hub-0.5.790.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.789.dist-info → worker_automate_hub-0.5.790.dist-info}/entry_points.txt +0 -0
|
@@ -890,27 +890,31 @@ async def send_to_webhook(
|
|
|
890
890
|
"valor_nota": valor_nota,
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
async with
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
893
|
+
i = 0
|
|
894
|
+
while i < 5:
|
|
895
|
+
try:
|
|
896
|
+
|
|
897
|
+
async with aiohttp.ClientSession(
|
|
898
|
+
connector=aiohttp.TCPConnector(verify_ssl=True)
|
|
899
|
+
) as session:
|
|
900
|
+
async with session.post(f"{urlSimplifica}", data=data) as response:
|
|
901
|
+
if response.status != 200:
|
|
902
|
+
raise Exception(f"Erro ao enviar notificacao: {response.text()}")
|
|
903
|
+
|
|
904
|
+
data = await response.text()
|
|
905
|
+
log_msg = f"\nSucesso ao enviar {data}\n para o webhook"
|
|
906
|
+
console.print(
|
|
907
|
+
log_msg,
|
|
908
|
+
style="bold green",
|
|
909
|
+
)
|
|
910
|
+
logger.info(log_msg)
|
|
911
|
+
break
|
|
912
|
+
except Exception as e:
|
|
913
|
+
err_msg = f"Erro ao comunicar com endpoint do webhoook: {e}"
|
|
914
|
+
console.print(f"\n{err_msg}\n", style="bold red")
|
|
915
|
+
logger.info(err_msg)
|
|
916
|
+
i += 1
|
|
917
|
+
await worker_sleep(3)
|
|
914
918
|
|
|
915
919
|
def add_start_on_boot_to_registry():
|
|
916
920
|
import winreg as reg
|
|
@@ -99,10 +99,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
|
|
|
99
99
|
worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
|
|
100
100
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
|
101
101
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
|
102
|
-
worker_automate_hub/utils/util.py,sha256=
|
|
102
|
+
worker_automate_hub/utils/util.py,sha256=28-CLCLbkIIpffM082X4BBUlANcqdrzw2MiuW8o9D5U,210256
|
|
103
103
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=F7jk95LpDwl5WfaQXahCA5yDdnySnWdctDqczHXwGqE,38195
|
|
104
104
|
worker_automate_hub/worker.py,sha256=zEnYUrm5kY2cHbbee15QJkwkx4euD2SB2zRvUIbjS90,6850
|
|
105
|
-
worker_automate_hub-0.5.
|
|
106
|
-
worker_automate_hub-0.5.
|
|
107
|
-
worker_automate_hub-0.5.
|
|
108
|
-
worker_automate_hub-0.5.
|
|
105
|
+
worker_automate_hub-0.5.790.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
|
106
|
+
worker_automate_hub-0.5.790.dist-info/METADATA,sha256=qPkTfaIPgPzNfUCw_Z6ZjptmSPnJBem_kCRkdRqXPZ8,3100
|
|
107
|
+
worker_automate_hub-0.5.790.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
|
|
108
|
+
worker_automate_hub-0.5.790.dist-info/RECORD,,
|
|
File without changes
|
{worker_automate_hub-0.5.789.dist-info → worker_automate_hub-0.5.790.dist-info}/entry_points.txt
RENAMED
|
File without changes
|