ga-api-client 0.6.3__tar.gz → 0.6.4__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: ga-api-client
3
- Version: 0.6.3
3
+ Version: 0.6.4
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Operating System :: OS Independent
@@ -214,15 +214,15 @@ class Client:
214
214
  async with self._session.request(method, self.url+path, json=data, headers=self._headers, ssl=self.ssl, timeout=self.timeout) as resp:
215
215
  if resp.status in code: # expected status code
216
216
  rlt = None
217
+ ts_head = datetime.datetime.now()
217
218
  if resp.content_type == APPLICATION_JSON:
218
- ts_head = datetime.datetime.now()
219
219
  data = await resp.json()
220
- ts_done = datetime.datetime.now()
221
220
  if 'rlt' in data:
222
221
  rlt = data['rlt']
223
222
  logging.debug(f'transfer req={ts_send.strftime("%Y/%m/%d %H:%M:%S")} head={ts_head.strftime("%Y/%m/%d %H:%M:%S")} data={ts_done.strftime("%Y/%m/%d %H:%M:%S")}')
224
223
  if 'status' in data:
225
224
  meta = data['status']
225
+ ts_done = datetime.datetime.now()
226
226
  wrk_total = 0
227
227
  if "wrk_wait" in meta:
228
228
  wrk_total += meta["wrk_wait"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ga-api-client
3
- Version: 0.6.3
3
+ Version: 0.6.4
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Operating System :: OS Independent
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ga-api-client
3
- version = 0.6.3
3
+ version = 0.6.4
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
6
6
  classifiers =
File without changes
File without changes
File without changes