Spaces:
Sleeping
Sleeping
Nikhil0987
commited on
Commit
·
dd9eda6
1
Parent(s):
17ac08e
Update remainder.py
Browse files- remainder.py +2 -2
remainder.py
CHANGED
@@ -30,8 +30,8 @@ def rem():
|
|
30 |
def save_data():
|
31 |
with open ("database/data.json")as file:
|
32 |
data =json.load(file)
|
33 |
-
|
34 |
-
|
35 |
|
36 |
with open("database/data.json","w") as file:
|
37 |
json.dump(data,file,indent=4)
|
|
|
30 |
def save_data():
|
31 |
with open ("database/data.json")as file:
|
32 |
data =json.load(file)
|
33 |
+
allnewreminder = data["reminders"]
|
34 |
+
allnewreminder.append(reminder)
|
35 |
|
36 |
with open("database/data.json","w") as file:
|
37 |
json.dump(data,file,indent=4)
|