From d12cd8d4525b874040d62ae61766e8d9ac85d49a Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub Date: Mon, 25 Jul 2022 21:42:33 +0200 Subject: [PATCH] fix: files without suffix are deleted Signed-off-by: thiswillbeyourgithub --- wasp/apps/alarm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasp/apps/alarm.py b/wasp/apps/alarm.py index 6ba0d9b..9ceab33 100644 --- a/wasp/apps/alarm.py +++ b/wasp/apps/alarm.py @@ -89,7 +89,7 @@ class AlarmApp: self.num_alarms = 0 try: - with open("alarms", "r") as f: + with open("alarms.txt", "r") as f: alarms = "".join(f.readlines()).split(";") for alarm in alarms: n = self.num_alarms @@ -142,7 +142,7 @@ class AlarmApp: try: if self.num_alarms == 0: return - with open("alarms", "w") as f: + with open("alarms.txt", "w") as f: for n in range(self.num_alarms): al = self.alarms[n] f.write(",".join(map(str, al)) + ";")