We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd92145 commit 97963b7Copy full SHA for 97963b7
jsk_fetch_robot/jsk_fetch_startup/scripts/time_signal.py
@@ -75,17 +75,17 @@ def speak_en(self):
75
self.speak(self.client_en, speech_text)
76
77
def _get_text(self, hour):
78
- if hour == 0:
79
- text = 'midnight'
80
- elif hour == 12:
81
- text = 'noon'
82
- else:
83
- if hour > 12:
84
- text = str(hour % 12) + ' PM'
85
86
- text = str(hour % 12) + ' AM'
87
- text = "It's " + text + "."
88
- return text
+ if hour == 0:
+ text = 'midnight'
+ elif hour == 12:
+ text = 'noon'
+ else:
+ if hour > 12:
+ text = str(hour % 12) + ' PM'
+ text = str(hour % 12) + ' AM'
+ text = "It's " + text + ""
+ return text
89
90
91
if __name__ == '__main__':
0 commit comments