From 02152bfb3640d0c265d0ee5fc6263c9d93dfe775 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 5 Jun 2021 23:32:18 -0400 Subject: [PATCH] Fixed a bug where Fenrir wasn't triggering autotime on the hour, 00. --- src/fenrirscreenreader/commands/onHeartBeat/76000-time.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py b/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py index b1bcdeff..3d194fd9 100755 --- a/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py +++ b/src/fenrirscreenreader/commands/onHeartBeat/76000-time.py @@ -38,7 +38,7 @@ class command(): return else: # shoul announce? - if not str(now.minute) in onMinutes: + if not str(now.minute).zfill(2) in onMinutes: return # already announced? if now.hour == self.lastTime.hour: @@ -63,7 +63,7 @@ class command(): if presentTime: # present the time - self.env['runtime']['outputManager'].presentText(_('Autotime: {0}').format(timeString), soundIcon='', interrupt=False) + self.env['runtime']['outputManager'].presentText(_("It's {0}").format(timeString), soundIcon='', interrupt=False) # and date if changes if presentDate: self.env['runtime']['outputManager'].presentText(dateString , soundIcon='', interrupt=False)