From 4a63a107016586d6d0bb932b136c85fab33afd86 Mon Sep 17 00:00:00 2001 From: Viktor Andersson <30777521+VIKTORVAV99@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:02:02 +0100 Subject: [PATCH] chore(NG.py): Adjust re-fetch frequency for NG.py --- parsers/NG.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/parsers/NG.py b/parsers/NG.py index 7b0b5b01f7..03d2b71a89 100644 --- a/parsers/NG.py +++ b/parsers/NG.py @@ -75,12 +75,7 @@ def get_data(session: Session, logger: Logger, timestamp: datetime): return production_dict -# The data is hourly, but it takes a few minutes after the turn of each hour -# for the server to populate it. Setting the re-fetch frequency to 45 min will -# ensure that if the live data is missing for a given hour when it's first -# fetched, it will be fetched again during the same hour. (As far as I can -# tell, the table is always populated within 15 min of the turn of the hour). -@config.refetch_frequency(timedelta(minutes=45)) +@config.refetch_frequency(timedelta(hours=24)) def fetch_production( zone_key: ZoneKey = ZoneKey("NG"), session: Session | None = None,