From 1a7daca3be87d6f42ae8bce5994cb4addf06a787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Sun, 26 Oct 2025 02:22:46 +0100 Subject: [PATCH] Drop summer-winter time --- calculator/miner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calculator/miner.py b/calculator/miner.py index 4a4c1d3..b6e9ea8 100644 --- a/calculator/miner.py +++ b/calculator/miner.py @@ -70,6 +70,9 @@ def get_energy_prices(d: datetime.date=datetime.date.today(), no_cache:bool=Fals raise PriceNotFound() # Only cache if all 24 hours are present + if len(hours) == 100: + hours = hours[0:8] + hours[12:100] + if len(hours) in (24, 96): # 96 for 15-min intervals with open(cache_file, "w") as f: f.write(json.dumps(hours))