Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ def add_to_json(goal): # Renamed 'new_goal' to 'goal' for clarity
|
|
8 |
data = json.load(file)
|
9 |
|
10 |
new_item = {
|
11 |
-
"
|
12 |
# "reminder": new_reminder # Remove if not used
|
13 |
}
|
14 |
data["goal"].append(new_item)
|
|
|
8 |
data = json.load(file)
|
9 |
|
10 |
new_item = {
|
11 |
+
"Goal": goal,
|
12 |
# "reminder": new_reminder # Remove if not used
|
13 |
}
|
14 |
data["goal"].append(new_item)
|