Initial commit: yu-zhi-ran platform with automation integration
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/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 ['D01', 'B05']:
|
||||
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('已重置选题状态:', [t['id'] for t in data if t['id'] in ['D01','B05']])
|
||||
Reference in New Issue
Block a user