From 00ed1b4e6a6a14e05d1c9462f88e6ce3cd572508 Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 14 Jul 2023 15:48:18 -0400 Subject: [PATCH] grab total seconds, not just the seconds that have been explicitly assigned to the timedelta. w/ jason and elizabeth w/ jasquat --- .../src/spiffworkflow_backend/specs/start_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/specs/start_event.py b/spiffworkflow-backend/src/spiffworkflow_backend/specs/start_event.py index dd8fb89a..5ffd93e2 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/specs/start_event.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/specs/start_event.py @@ -53,7 +53,7 @@ class StartEvent(DefaultStartEvent): # type: ignore elif isinstance(self.timer_definition, CycleTimerEventDefinition): cycles, start, cycle_duration = TimerEventDefinition.parse_iso_recurring_interval(evaluated_expression) time_delta = start - now_in_utc + cycle_duration - duration = cycle_duration.seconds + duration = cycle_duration.total_seconds() start_delay_in_seconds = int(time_delta.total_seconds())