Skip to content

Commit ef2daaa

Browse files
committed
fix api
1 parent 905a543 commit ef2daaa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ def show_welcome_page():
9494

9595
@app.get("/find_image", tags=["Find Image"])
9696
async def find_image(
97-
gps_point: tuple[str, str],
97+
gps_point: tuple[float, float],
9898
nuts_id: str,
9999
year: int = Query(2021, ge=2018, le=2024)
100100
) -> str:
101101
"""
102102
Find image path for a given NUTS3 and year.
103103
104104
Args:
105-
gps_point (tuple[str, str]): the gps point.
105+
gps_point (tuple[float, float]): the gps point.
106106
nuts_id (str): The ID of the NUTS.
107107
year (int): The year of the satellite images.
108108
Returns:
@@ -119,7 +119,7 @@ async def find_image(
119119
if response.status_code == 200:
120120
df = pd.read_parquet(url)
121121
else:
122-
print(f"❌ No data for NUTS3='{nuts3}' and year={year} (HTTP {response.status_code})")
122+
print(f"❌ No data for NUTS3='{nuts_id}' and year={year} (HTTP {response.status_code})")
123123
return None
124124

125125
# Création de la géométrie

0 commit comments

Comments
 (0)