cybertron-spark 0.1.2__tar.gz → 0.1.3__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: cybertron-spark
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Automação do Zendesk com Selenium, Zenpy e integração Cybertron
5
5
  Author: Gustavo Sartorio
6
6
  Author-email: strov3rl@gmail.com
@@ -1,11 +1,9 @@
1
1
  import sys
2
2
  import os
3
- import json
4
3
  import requests
5
4
  import traceback
6
5
  import urllib3
7
6
  from dotenv import load_dotenv
8
- from datetime import datetime
9
7
 
10
8
  # Desabilita avisos de certificados inseguros (opcional, conforme seu código original)
11
9
  urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
@@ -107,7 +105,6 @@ class Heartbeat():
107
105
 
108
106
  payload = {
109
107
  'bot_id': self.bot_id,
110
- 'created_at': datetime.now().isoformat(),
111
108
  'ticket_id': ticket_id,
112
109
  'pedido': pedido,
113
110
  'protocolo': protocolo,
@@ -122,7 +119,6 @@ class Heartbeat():
122
119
  payload = {
123
120
  'bot_id': self.bot_id,
124
121
  'quantidade': quantidade,
125
- 'created_at': datetime.now().isoformat(),
126
122
  }
127
123
 
128
124
  self._post(endpoint, payload)
@@ -135,7 +131,6 @@ class Heartbeat():
135
131
  'cpu': cpu,
136
132
  'memory': memory,
137
133
  'disk': disk,
138
- 'updated_at': datetime.now().isoformat(),
139
134
  }
140
135
 
141
136
  self._put(endpoint, payload)
@@ -145,7 +140,6 @@ class Heartbeat():
145
140
 
146
141
  payload = {
147
142
  'bot_id': self.bot_id,
148
- 'updated_at': datetime.now().isoformat(),
149
143
  'current_status': status
150
144
  }
151
145
 
@@ -164,7 +158,6 @@ class Heartbeat():
164
158
  payload = {
165
159
  'codigo_erro': tipo_erro,
166
160
  'descricao': mensagem,
167
- 'data_log': datetime.now().isoformat(),
168
161
  'bot_id': self.bot_id,
169
162
  'resolvido': False,
170
163
  'tipo_alerta': tipo_alerta,
@@ -180,7 +173,6 @@ class Heartbeat():
180
173
 
181
174
  payload = {
182
175
  'bot_realizado': True,
183
- 'data_liberacao': datetime.now().isoformat()
184
176
  }
185
177
 
186
178
  self._patch(endpoint, payload)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cybertron-spark
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Automação do Zendesk com Selenium, Zenpy e integração Cybertron
5
5
  Author: Gustavo Sartorio
6
6
  Author-email: strov3rl@gmail.com
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as arq:
5
5
 
6
6
  setup(
7
7
  name='cybertron-spark',
8
- version='0.1.2',
8
+ version='0.1.3',
9
9
  license='MIT',
10
10
  author='Gustavo Sartorio',
11
11
  author_email='strov3rl@gmail.com',
File without changes