python-terminusgps 37.2.1__py3-none-any.whl → 37.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-terminusgps
3
- Version: 37.2.1
3
+ Version: 37.2.2
4
4
  Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
5
5
  Project-URL: Documentation, https://docs.terminusgps.com
6
6
  Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
@@ -51,14 +51,14 @@ terminusgps/wialon/items/base.py,sha256=vS8xIo5WLiwzpB81i7aHFnwOHzCf4lQG6azjq79H
51
51
  terminusgps/wialon/items/resource.py,sha256=Rhy2ig-yxznNhi6ZSaUBbu8ViVx0Sg4n_XS08ijgXsA,18280
52
52
  terminusgps/wialon/items/retranslator.py,sha256=2J1x7lNxRck-IEXrmJ7RM9bVL60mrZkfmczOSiUhiO8,3873
53
53
  terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9LyedE,1326
54
- terminusgps/wialon/items/unit.py,sha256=ELHiyCtUGfrxklLoYLqQRpTdBV-zH86m2YmUojJZq78,11944
54
+ terminusgps/wialon/items/unit.py,sha256=udDz1NnFdFAMjnYnzuijbUkqAmPdQKy0MruNA0EDuO0,12018
55
55
  terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
56
56
  terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
57
57
  terminusgps/wialon/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  terminusgps/wialon/tests/test_items.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  terminusgps/wialon/tests/test_session.py,sha256=9mBlYchMo9NeqRIZsmxYzrM1zBHorqu4ooxqSNppLpI,1336
60
60
  terminusgps/wialon/tests/test_utils.py,sha256=SK4PxJQGECFnzx_EQeRAQfsQ5_3FLaVcis2W9u_ibuI,1730
61
- python_terminusgps-37.2.1.dist-info/METADATA,sha256=wAaM5nJUS8JGi3lRfXbpvkTIoDQ7g6mk3VZoTyl7hMg,1329
62
- python_terminusgps-37.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
- python_terminusgps-37.2.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
64
- python_terminusgps-37.2.1.dist-info/RECORD,,
61
+ python_terminusgps-37.2.2.dist-info/METADATA,sha256=ROKVscKY9GHS-sBZuOvWgHdE6eIsINWx6nEQE5E1Xog,1329
62
+ python_terminusgps-37.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
63
+ python_terminusgps-37.2.2.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
64
+ python_terminusgps-37.2.2.dist-info/RECORD,,
@@ -103,9 +103,13 @@ class WialonUnit(WialonBase):
103
103
  +----------+------------------------------+-----------------+
104
104
 
105
105
  """
106
- response = self.session.wialon_api.core_search_item(
107
- **{"id": self.id, "flags": flags.DataFlag.UNIT_POSITION}
108
- ).get("pos", {})
106
+ response = (
107
+ self.session.wialon_api.core_search_item(
108
+ **{"id": self.id, "flags": flags.DataFlag.UNIT_POSITION}
109
+ )
110
+ .get("item", {})
111
+ .get("pos", {})
112
+ )
109
113
  if response:
110
114
  response["t"] = datetime.fromtimestamp(response["t"])
111
115
  return response