Commit 24e34266 authored by CEVAER's avatar CEVAER
Browse files

Fixed wrong parameters in track API request

parent a3985649
......@@ -46,7 +46,7 @@ def get_track_points_from_database(session, date):
def get_track_points_from_api(date):
min_date = date.strftime("%Y-%m-%d")
max_date = (date + datetime.timedelta(days=1)).strftime("%Y-%m-%d")
max_date = (date + datetime.timedelta(days=2)).strftime("%Y-%m-%d")
df = pd.read_csv(f"https://cyclobs.ifremer.fr/app/api/track?min_date={min_date}&max_date={max_date}")
df["date"] = pd.to_datetime(df["date"])
df = df[df["date"] >= date]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment