Skip to content

Commit

Permalink
Fix check_interval calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
briluza committed Nov 16, 2023
1 parent 3bd33a8 commit 3a71ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domaintools_iris_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a71ce6

Please sign in to comment.