Fixed a bug where Fenrir wasn't triggering autotime on the hour, 00.
This commit is contained in:
parent
23792fc897
commit
02152bfb36
@ -38,7 +38,7 @@ class command():
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# shoul announce?
|
# shoul announce?
|
||||||
if not str(now.minute) in onMinutes:
|
if not str(now.minute).zfill(2) in onMinutes:
|
||||||
return
|
return
|
||||||
# already announced?
|
# already announced?
|
||||||
if now.hour == self.lastTime.hour:
|
if now.hour == self.lastTime.hour:
|
||||||
@ -63,7 +63,7 @@ class command():
|
|||||||
|
|
||||||
if presentTime:
|
if presentTime:
|
||||||
# present the time
|
# 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
|
# and date if changes
|
||||||
if presentDate:
|
if presentDate:
|
||||||
self.env['runtime']['outputManager'].presentText(dateString , soundIcon='', interrupt=False)
|
self.env['runtime']['outputManager'].presentText(dateString , soundIcon='', interrupt=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user