Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def task_manager(action: str, task_data: str = "") -> str:
|
|
26 |
# File to store task data
|
27 |
TASKS_FILE = "tasks.json"
|
28 |
|
29 |
-
# Create an empty task list
|
30 |
if not os.path.exists(TASKS_FILE):
|
31 |
with open(TASKS_FILE, "w") as f:
|
32 |
json.dump({"tasks": []}, f)
|
|
|
26 |
# File to store task data
|
27 |
TASKS_FILE = "tasks.json"
|
28 |
|
29 |
+
# Create an empty task list
|
30 |
if not os.path.exists(TASKS_FILE):
|
31 |
with open(TASKS_FILE, "w") as f:
|
32 |
json.dump({"tasks": []}, f)
|