#!/usr/bin/env python3
import json
data = json.load(open('automation/data/sustainability_topics.json', 'r', encoding='utf-8'))
for t in data:
    if t and t.get('id') == 'D01':
        t['priority_score'] = 12
        print(f"D01 priority_score set to {t['priority_score']}")
json.dump(data, open('automation/data/sustainability_topics.json', 'w', encoding='utf-8'), ensure_ascii=False, indent=2)
