python-terminusgps 42.2.0__py3-none-any.whl → 42.2.1__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: 42.2.0
3
+ Version: 42.2.1
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
@@ -29,14 +29,14 @@ terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b
29
29
  terminusgps/wialon/items/__init__.py,sha256=RTiY9ziXqKCB8VWGoExOIErDlUMBBfzzsA7nlOlCZ2w,41
30
30
  terminusgps/wialon/items/account.py,sha256=OSTTbw-nBFqzL1AnGYQ7-Gaymr-S5wx1a0uDzOFlxCM,7888
31
31
  terminusgps/wialon/items/base.py,sha256=579Dmapm_v8QDJYa0NJhdqSWYR0X6aVx53slD38pltw,8639
32
- terminusgps/wialon/items/factory.py,sha256=GkUWJbvnwnLC0L4G-Fun9wmQgWIyQSmVbJmoFD48TNg,3813
33
- terminusgps/wialon/items/resource.py,sha256=ys0IaXxjKkX2nukq3823aOtcY2rMVD1g-qlQEoyCLs0,4767
32
+ terminusgps/wialon/items/factory.py,sha256=RhzINAW2N6MbVbUvPO3EuCpm1h_cMX4-R7QCdMfzatU,3831
33
+ terminusgps/wialon/items/resource.py,sha256=I6va2TLt_yz-C3c02Thv8s-nm-6rZZ2UBEC44Cfow18,4813
34
34
  terminusgps/wialon/items/retranslator.py,sha256=nxp_SNsd9VBqEJcKOVLF6fxq4XS3gGjBX_Xk9h5zrEc,1850
35
35
  terminusgps/wialon/items/route.py,sha256=xixlex6bUeFHXucVQdbfQUSLxI1Rhwk6slhoFP2odp0,1307
36
36
  terminusgps/wialon/items/unit.py,sha256=kIjnMOjjI3siCaA6wXojzEK2xqFIm5mN4xNqzKDUa1Q,5473
37
37
  terminusgps/wialon/items/unit_group.py,sha256=L7-PAVCj8Bf50fa04Ials4VHg8LOWkw6hwNhtSyMksE,2133
38
38
  terminusgps/wialon/items/user.py,sha256=hZlFeXCgOAdivl_Anjp_We6Cy5U8IxWNDAgm5MFZfp0,5194
39
- python_terminusgps-42.2.0.dist-info/METADATA,sha256=0szO1zS6MxT8SMrkfYyYDFciVSW0NVqU5BtLMfVDMxU,976
40
- python_terminusgps-42.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
- python_terminusgps-42.2.0.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
42
- python_terminusgps-42.2.0.dist-info/RECORD,,
39
+ python_terminusgps-42.2.1.dist-info/METADATA,sha256=mh6DUWbR_4le4c0mP_nNrmlVFw1DZK7uLyk6mkYoC0s,976
40
+ python_terminusgps-42.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
41
+ python_terminusgps-42.2.1.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
42
+ python_terminusgps-42.2.1.dist-info/RECORD,,
@@ -112,4 +112,5 @@ class WialonObjectFactory:
112
112
  return obj
113
113
 
114
114
  def _retrieve_wialon_obj(self, cls, id) -> WialonObject:
115
- return cls(session=self.session, id=int(id))
115
+ obj = cls(session=self.session, id=int(id))
116
+ return obj
@@ -104,9 +104,11 @@ class WialonResource(WialonObject):
104
104
  )
105
105
 
106
106
  @requires_id
107
- def get_creator_id(self) -> str:
108
- return str(
107
+ def get_creator_id(self) -> str | None:
108
+ return (
109
109
  self.session.wialon_api.core_search_item(
110
110
  **{"id": self.id, "flags": flags.DataFlag.RESOURCE_BILLING_PROPERTIES}
111
- ).get("crt")
111
+ )
112
+ .get("item", {})
113
+ .get("crt")
112
114
  )