This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| TASKS_FILE = "tasks.json" | |
| def load_tasks(): | |
| """Load tasks from file if it exists""" | |
| if os.path.exists(TASKS_FILE): | |
| try: | |
| with open(TASKS_FILE, 'r') as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| TASKS_FILE = "tasks.json" | |
| def load_tasks(): | |
| """Load tasks from file if it exists""" | |
| if os.path.exists(TASKS_FILE): | |
| try: | |
| with open(TASKS_FILE, 'r') as f: | |
| return json.load(f) |