From 00baa4a2f287ab3d49c0ff0867c18f6a07a94f1b Mon Sep 17 00:00:00 2001 From: Blallo Date: Sun, 18 Sep 2022 23:29:32 +0200 Subject: [PATCH] Retrieve more data from fr24 --- latecomers/retrieve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latecomers/retrieve.py b/latecomers/retrieve.py index e30ec48..0f3f98a 100644 --- a/latecomers/retrieve.py +++ b/latecomers/retrieve.py @@ -27,7 +27,7 @@ def remote_fr24() -> T.Text: """ Returns the url to retrieve data from flightradar24. """ - yesterday_ts = int((datetime.now() - timedelta(hours=12)).timestamp()) + yesterday_ts = int((datetime.now() - timedelta(hours=6)).timestamp()) url = f"https://api.flightradar24.com/common/v1/airport.json?code=cia&plugin[]=&plugin-setting[schedule][mode]=arrivals&plugin-setting[schedule][timestamp]={yesterday_ts}&page=-1&limit=100&fleet=&token=" # noqa: E501 return url