[modules/pomodoro] Fix bug arising when the refresh interval is greater than 1s

This commit is contained in:
Romain Gehrig 2020-03-04 16:27:31 +01:00
parent a7d22edcda
commit d59b0161a3

View file

@ -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"