6 Commits
Author SHA1 Message Date
rmanach 0223134333 Merge branch 'release/v0.1.1' 2025-05-08 15:35:16 +02:00
rmanach b0585d82e8 fix .env.example 2025-05-08 15:34:55 +02:00
rmanach 303f101a18 Merge branch 'main' into develop 2025-05-08 15:32:24 +02:00
rmanach 732576bfb4 fix default URL 2025-05-08 12:00:19 +02:00
rmanach 4768d37d36 fix pagination next url 2025-05-08 10:46:13 +02:00
rmanach 1cce346d5b Merge tag 'v0.1.0' into develop
v0.1.0
2024-12-18 15:07:15 +01:00
5 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
WHEREIS_API_BASE_URL=https://api-whereis.thegux.fr
WHEREIS_API_BASE_URL=https://api.locame.duckdns.org
WHEREIS_API_EMAIL=
WHEREIS_API_PASSWORD=
+5 -5
View File
@@ -25,6 +25,10 @@ only-include = ["src"]
"src" = "whereis_client"
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = []
@@ -34,11 +38,7 @@ exclude = [
"venv",
]
line-length = 88
target-version = "py310"
[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.mypy]
+1 -1
View File
@@ -1,5 +1,5 @@
mypy===1.13.0
ruff==0.8.3
ruff>=0.9.6
twine==6.0.1
types-requests==2.32.0.20241016
hatch==1.14.0
+1 -1
View File
@@ -2,4 +2,4 @@ from .client import Client, OrderField
__all__ = ["Client", "OrderField"]
VERSION = "0.1.0"
VERSION = "0.1.1"
+5 -1
View File
@@ -16,7 +16,7 @@ from sseclient import SSEClient
from .exceptions import UnauthorizedException, WhereIsException
API_DEFAULT_URL = "https://api-whereis.thegux.fr"
API_DEFAULT_URL = "https://api.locame.duckdns.org"
__all__ = ["Client", "OrderField"]
@@ -541,6 +541,10 @@ class Client:
gps_url += f"?date_end={de.isoformat()}"
while gps_url is not None:
# pagination api next url returns http scheme instead of https
if self.base_url.startswith("https"):
gps_url = gps_url.replace("http://", "https://")
logging.info(f"get gps data from: {gps_url}")
data = self._get_paginate_gps_positions(gps_url)