Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def add_to_json(goal): # Renamed 'new_goal' to 'goal' for clarity
|
|
11 |
"goal": goal,
|
12 |
# "reminder": new_reminder # Remove if not used
|
13 |
}
|
14 |
-
data["
|
15 |
|
16 |
with open("test.json", "w") as file:
|
17 |
json.dump(data, file, indent=4)
|
|
|
11 |
"goal": goal,
|
12 |
# "reminder": new_reminder # Remove if not used
|
13 |
}
|
14 |
+
data["goal"].append(new_item)
|
15 |
|
16 |
with open("test.json", "w") as file:
|
17 |
json.dump(data, file, indent=4)
|