[bugfix] compared timedelta with int

This commit is contained in:
2022-11-24 10:13:21 +01:00
parent 56351ee700
commit 6fc1e073c0
2 changed files with 3 additions and 3 deletions

View File

@@ -637,7 +637,7 @@ class StationQC(object):
def check_for_inactive_message(self, key, dt_active):
dt_action = self.get_dt_for_action()
interval = self.parameters.get('interval')
if dt_action <= dt_active < dt_action + interval:
if dt_action <= dt_active < dt_action + timedelta(seconds=interval):
self.send_mail(key, status_type='Inactive')
def start(self):