make duration in seconds an int w/ jasquat
This commit is contained in:
parent
00ed1b4e6a
commit
29678bcd88
|
@ -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())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue