Skip to content

Commit

Permalink
Merge pull request #1265 from yuntai/timedelta_totalseconds
Browse files Browse the repository at this point in the history
Fix to use timdelta.total_seconds()
  • Loading branch information
robcarver17 authored Oct 6, 2023
2 parents 078fe75 + e5641b8 commit 923832c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysobjects/production/process_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def has_process_finished_in_last_day(self) -> bool:

time_now = datetime.datetime.now()
time_delta = time_now - end_time
if time_delta.seconds <= SECONDS_PER_DAY:
if time_delta.total_seconds() <= SECONDS_PER_DAY:
return True
else:
return False
Expand Down

0 comments on commit 923832c

Please sign in to comment.