From d59b0161a37f9fc9f8f5b71daa4f218bddb4127c Mon Sep 17 00:00:00 2001 From: Romain Gehrig Date: Wed, 4 Mar 2020 16:27:31 +0100 Subject: [PATCH] [modules/pomodoro] Fix bug arising when the refresh interval is greater than 1s --- bumblebee/modules/pomodoro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumblebee/modules/pomodoro.py b/bumblebee/modules/pomodoro.py index 3f1c2b7..7103dc1 100644 --- a/bumblebee/modules/pomodoro.py +++ b/bumblebee/modules/pomodoro.py @@ -80,7 +80,7 @@ class Module(bumblebee.engine.Module): self.remaining_time -= timediff self.time = datetime.datetime.now() - if self.remaining_time.seconds <= 0: + if self.remaining_time.total_seconds() <= 0: self.notify() if self.pomodoro["type"] == "Work": self.pomodoro["type"] = "Break"