1
0
Fork 0

fix: asked by daniel_thompson

Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
This commit is contained in:
thiswillbeyourgithub 2022-07-20 11:41:11 +02:00
parent cb51e83a28
commit 040edba1f7

View file

@ -6,7 +6,7 @@
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
An application to set a vibration alarm. All settings can be accessed from the Watch UI. An application to set a vibration alarm. All settings can be accessed from the Watch UI.
Press the button to turn of ringing alarms. Press the button to turn off ringing alarms.
.. figure:: res/AlarmApp.png .. figure:: res/AlarmApp.png
:width: 179 :width: 179
@ -91,10 +91,10 @@ class AlarmApp:
try: try:
with open("alarms", "r") as f: with open("alarms", "r") as f:
alarms = "".join(f.readlines()).split(";") alarms = "".join(f.readlines()).split(";")
for alarm in alarms: for alarm in alarms:
n = self.num_alarms n = self.num_alarms
self.alarms[n][:] = map(int, alarm.split(",")) self.alarms[n][:] = map(int, alarm.split(","))
self.num_alarms += 1 self.num_alarms += 1
except Exception: except Exception:
pass pass