11 lines
430 B
Python
11 lines
430 B
Python
#!/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['id'] in ['B05', 'D01']:
|
|
t['status'] = '待处理'
|
|
if 'ready_at' in t:
|
|
del t['ready_at']
|
|
json.dump(data, open('automation/data/sustainability_topics.json', 'w', encoding='utf-8'), ensure_ascii=False, indent=2)
|
|
print('已重置 B05, D01 为待处理')
|