REFACTOR AEMET weather file
This commit is contained in:
@@ -487,7 +487,7 @@ class TrainingService:
|
||||
params["end_date"] = request.end_date.isoformat()
|
||||
|
||||
response = await client.get(
|
||||
f"{settings.DATA_SERVICE_URL}/api/weather",
|
||||
f"{settings.DATA_SERVICE_URL}/weather/history",
|
||||
params=params,
|
||||
timeout=30.0
|
||||
)
|
||||
@@ -515,7 +515,7 @@ class TrainingService:
|
||||
params["end_date"] = request.end_date.isoformat()
|
||||
|
||||
response = await client.get(
|
||||
f"{settings.DATA_SERVICE_URL}/api/traffic",
|
||||
f"{settings.DATA_SERVICE_URL}/traffic/historical",
|
||||
params=params,
|
||||
timeout=30.0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user