Retrieve more data from fr24

master
blallo 2022-09-18 23:29:32 +02:00
parent 55b6d565b0
commit 00baa4a2f2
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 1 additions and 1 deletions

View File

@ -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