python-terminusgps 37.7.6__py3-none-any.whl → 37.7.7__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.
Potentially problematic release.
This version of python-terminusgps might be problematic. Click here for more details.
- {python_terminusgps-37.7.6.dist-info → python_terminusgps-37.7.7.dist-info}/METADATA +1 -1
- {python_terminusgps-37.7.6.dist-info → python_terminusgps-37.7.7.dist-info}/RECORD +5 -5
- terminusgps/wialon/utils.py +4 -4
- {python_terminusgps-37.7.6.dist-info → python_terminusgps-37.7.7.dist-info}/WHEEL +0 -0
- {python_terminusgps-37.7.6.dist-info → python_terminusgps-37.7.7.dist-info}/licenses/COPYING +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 37.7.
|
|
3
|
+
Version: 37.7.7
|
|
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
|
|
@@ -41,7 +41,7 @@ terminusgps/wialon/constants.py,sha256=05pLc_0S-x0tT87cQcxOmr8plesjOQxoXfUdjIHwI
|
|
|
41
41
|
terminusgps/wialon/flags.py,sha256=M50EdhxQ8IMnJnU0mrHK7-h8Asc6tvNiTOOfd1dBW6A,12815
|
|
42
42
|
terminusgps/wialon/renderer.py,sha256=ubmaLjdJyksO2qiWHbIBvYeDqlFya2br7oJYsdfoyV8,7046
|
|
43
43
|
terminusgps/wialon/session.py,sha256=osIBLGgpfZgu4tD-afZQlIszzHH9aD30FEToJ5wwsTc,10125
|
|
44
|
-
terminusgps/wialon/utils.py,sha256=
|
|
44
|
+
terminusgps/wialon/utils.py,sha256=jf1J7thY67C70w6Ik6F_XCJdwVMevWHk01bonAc1XIQ,11637
|
|
45
45
|
terminusgps/wialon/validators.py,sha256=o5__H9HHnGYth8QAKErJG5rEub7FnT8ue0S3IQ8b67o,4232
|
|
46
46
|
terminusgps/wialon/items/__init__.py,sha256=3BVthghekMvhMQSzQgBMlD_phxmKSmp3Zvmo-z0O8Bs,211
|
|
47
47
|
terminusgps/wialon/items/base.py,sha256=vS8xIo5WLiwzpB81i7aHFnwOHzCf4lQG6azjq79HDM4,11775
|
|
@@ -51,7 +51,7 @@ terminusgps/wialon/items/route.py,sha256=2dEUK9o8nwutPE03W-5GUcZrjGvbwLoExVnFV9L
|
|
|
51
51
|
terminusgps/wialon/items/unit.py,sha256=FsOQdCFJPiUp2OuCxzqYI_oEYBWcjgWxicYiNRFkGBM,12590
|
|
52
52
|
terminusgps/wialon/items/unit_group.py,sha256=HhYMZ9b7UATXeEgHkXN9r5-M_w82fabjDYADCUwBtxQ,4442
|
|
53
53
|
terminusgps/wialon/items/user.py,sha256=pR6OTrm6f7Zo0J8eLvKtWVsdhGi430OxMsMMthGh8YE,5382
|
|
54
|
-
python_terminusgps-37.7.
|
|
55
|
-
python_terminusgps-37.7.
|
|
56
|
-
python_terminusgps-37.7.
|
|
57
|
-
python_terminusgps-37.7.
|
|
54
|
+
python_terminusgps-37.7.7.dist-info/METADATA,sha256=NYLnEfo6uMNSd0iS8I2JEKYbIVoX5k83TZRBR9WU3d8,1329
|
|
55
|
+
python_terminusgps-37.7.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
56
|
+
python_terminusgps-37.7.7.dist-info/licenses/COPYING,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
57
|
+
python_terminusgps-37.7.7.dist-info/RECORD,,
|
terminusgps/wialon/utils.py
CHANGED
|
@@ -156,8 +156,8 @@ def get_unit_by_iccid(iccid: str, session: WialonSession) -> WialonUnit | None:
|
|
|
156
156
|
"to": 0,
|
|
157
157
|
}
|
|
158
158
|
)
|
|
159
|
-
if results:
|
|
160
|
-
return WialonUnit(id=results
|
|
159
|
+
if results and results.get("totalItemsCount") == 1:
|
|
160
|
+
return WialonUnit(id=results["items"][0]["id"], session=session)
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
def get_resources(session: WialonSession) -> list[WialonResource] | None:
|
|
@@ -251,8 +251,8 @@ def get_unit_by_imei(imei: str, session: WialonSession) -> WialonUnit | None:
|
|
|
251
251
|
}
|
|
252
252
|
)
|
|
253
253
|
|
|
254
|
-
if results
|
|
255
|
-
return WialonUnit(id=results["items"][0]
|
|
254
|
+
if results and results.get("totalItemsCount", 0) == 1:
|
|
255
|
+
return WialonUnit(id=results["items"][0]["id"], session=session)
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
def get_vin_info(vin_number: str, session: WialonSession) -> dict[str, typing.Any]:
|
|
File without changes
|
{python_terminusgps-37.7.6.dist-info → python_terminusgps-37.7.7.dist-info}/licenses/COPYING
RENAMED
|
File without changes
|