From 3a71ce698a0682281a91095db2c5e875da17267c Mon Sep 17 00:00:00 2001 From: bluza Date: Fri, 17 Nov 2023 00:10:38 +0800 Subject: [PATCH] Fix check_interval calculation --- domaintools_iris_connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domaintools_iris_connector.py b/domaintools_iris_connector.py index 953601f..02a95c7 100644 --- a/domaintools_iris_connector.py +++ b/domaintools_iris_connector.py @@ -695,7 +695,7 @@ def _check_interval(self, interval: int, last_run: str) -> bool: now = datetime.now() last_run = datetime.strptime(last_run, date_format) - diff = (now - last_run).seconds / 60 + diff = round((now - last_run).total_seconds() / 60) return True if diff >= interval else False