Convert hours to 15-minute intervals in read_item function
All checks were successful
Build a dev image / build (push) Successful in 30s

This commit is contained in:
Adam Štrauch 2025-12-06 01:41:43 +01:00
parent f9e50e4995
commit c8761891fe
Signed by: cx
GPG key ID: 7262DAFE292BCE20

View file

@ -152,6 +152,11 @@ def read_item(
average_hours_threshold:float=1.25,
) -> DayPrice:
# Convert hours to 15-min intervals
num_cheapest_hours *= 4
num_most_expensive_hours *= 4
average_hours *= 4
if not date:
date = datetime.date.today()
if not hour: