@ -149,6 +149,7 @@ async def run_yearly_simulation(
{"sim_start": sim_start.date()}
)).mappings().first()
if last_overhaul:
last_oh_dt = date_to_utc(last_overhaul["end_date"])
@ -157,6 +158,13 @@ async def run_yearly_simulation(
0
)
if offset_hours > 17520:
offset_hours -= 17520
overhaul_interval = 8760 * 2
overhaul_duration = 1200
if next_overhaul:
next_oh_start = date_to_utc(next_overhaul["start_date"])