From e6825248dd96c6fa31952539c02d2ea97917d93d Mon Sep 17 00:00:00 2001 From: Blallo Date: Fri, 9 Sep 2022 11:09:03 +0200 Subject: [PATCH] Fix: adjust timestamp for fr24 data retrieval --- latecomers/retrieve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/latecomers/retrieve.py b/latecomers/retrieve.py index 957cad0..7bc98cd 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(days=1)).timestamp()) + yesterday_ts = int((datetime.now() - timedelta(hours=12)).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