-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfix_json.py
More file actions
24 lines (19 loc) · 1.13 KB
/
Copy pathfix_json.py
File metadata and controls
24 lines (19 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import json
# Read with json5-like parsing (handle duplicate keys by taking last)
content = open('activity.json').read()
# Quick fix: remove duplicate 'notes' in task-061
content = content.replace(
'"notes": "Integrated with feature flag system. Free users blocked from subdomains, PRO required for regular subdomains, BUSINESS required for short subdomains (<6 chars)."],',
'"notes": "Integrated with feature flag system. Free users blocked from subdomains, PRO required for regular subdomains, BUSINESS required for short subdomains (<6 chars)."' + chr(93)
)
data = json.loads(content)
# Update task-108
data['tasks']['task-108']['status'] = 'completed'
data['tasks']['task-108']['completedAt'] = '2026-02-22T09:40:00Z'
data['tasks']['task-108']['steps'][0]['status'] = 'pending'
data['tasks']['task-108']['steps'][2]['status'] = 'completed'
data['tasks']['task-108']['steps'][3]['status'] = 'completed'
data['tasks']['task-108']['verified'] = {'date': '2026-02-22T09:40:00Z', 'app': 'next-js-test-app.onhyper.io', 'status': 'HTTP 200'}
with open('activity.json', 'w') as f:
json.dump(data, f, indent=2)
print('Updated task-108 to completed')