diff --git a/Common.py b/Common.py index 72bf40b..4897d15 100644 --- a/Common.py +++ b/Common.py @@ -77,7 +77,7 @@ def resetDelay(): def doDelay(): global delay - if (datetime.now() - delay).seconds < 120: + if getTimeDelta(datetime.now(), delay) < 120: delay = datetime.fromtimestamp(0) return True return False