Skip to content

Commit

Permalink
Merge pull request #4788 from ForgeFlow/17.0-fix-maintenance
Browse files Browse the repository at this point in the history
[17.0][OU-FIX] maintenance: dynamic interval needs special handling
  • Loading branch information
MiquelRForgeFlow authored Feb 28, 2025
2 parents 0722bde + b11d683 commit 19b85f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def _maintenance_plan(env):
repeat_unit = COALESCE(mp.interval_step, 'year'),
repeat_type='until',
repeat_until = (
CURRENT_DATE + interval ''
CURRENT_DATE + (''
|| COALESCE(mp.maintenance_plan_horizon, 1) || ' '
|| COALESCE(mp.planning_step, 'year')
|| COALESCE(mp.planning_step, 'year'))::interval
)::date
FROM maintenance_plan mp
WHERE mr.maintenance_plan_id = mp.id""",
Expand Down

0 comments on commit 19b85f3

Please sign in to comment.