Convert hours to 15-minute intervals in read_item function
All checks were successful
Build a dev image / build (push) Successful in 30s
All checks were successful
Build a dev image / build (push) Successful in 30s
This commit is contained in:
parent
f9e50e4995
commit
c8761891fe
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue