make duration in seconds an int w/ jasquat

This commit is contained in:
burnettk 2023-07-14 16:15:49 -04:00
parent 00ed1b4e6a
commit 29678bcd88
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class StartEvent(DefaultStartEvent): # type: ignore
elif isinstance(self.timer_definition, CycleTimerEventDefinition): elif isinstance(self.timer_definition, CycleTimerEventDefinition):
cycles, start, cycle_duration = TimerEventDefinition.parse_iso_recurring_interval(evaluated_expression) cycles, start, cycle_duration = TimerEventDefinition.parse_iso_recurring_interval(evaluated_expression)
time_delta = start - now_in_utc + cycle_duration time_delta = start - now_in_utc + cycle_duration
duration = cycle_duration.total_seconds() duration = int(cycle_duration.total_seconds())
start_delay_in_seconds = int(time_delta.total_seconds()) start_delay_in_seconds = int(time_delta.total_seconds())