bcpkgfox 0.17.13__tar.gz → 0.17.14__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.17.13
3
+ Version: 0.17.14
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: BCFOX
@@ -170,8 +170,10 @@ def invoke_api_proc_log(link, id_robo, token):
170
170
  "POST", link, json=payload, headers=headers)
171
171
  print(f"\n{responseinsert.json()}")
172
172
 
173
- def log_event(idrobo, step, status_robo, description, error_type, header):
173
+ def log_event(idrobo, step, status_robo, description, error_type, token):
174
174
  import requests
175
+ headers = {
176
+ "x-access-token": token}
175
177
 
176
178
  url = "https://api-4.bcfox.com.br/bcjur/log/painel"
177
179
 
@@ -183,7 +185,7 @@ def log_event(idrobo, step, status_robo, description, error_type, header):
183
185
  "error_type": error_type
184
186
  }
185
187
 
186
- response = requests.post(url, json=payload, headers=header)
188
+ response = requests.post(url, json=payload, headers=headers)
187
189
  response.raise_for_status()
188
190
 
189
191
  def login_2fac(driver, certificate, system, token, code_timeout=60):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcpkgfox
3
- Version: 0.17.13
3
+ Version: 0.17.14
4
4
  Summary: Biblioteca BCFOX
5
5
  Home-page: https://github.com/robotsbcfox/PacotePythonBCFOX
6
6
  Author: BCFOX
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="bcpkgfox",
5
- version="0.17.13",
5
+ version="0.17.14",
6
6
  author="BCFOX",
7
7
  author_email="bcfox@bcfox.com.br",
8
8
  description="Biblioteca BCFOX",
File without changes
File without changes
File without changes
File without changes