feat: Chinese news sources, AI summary, todo extraction
This commit is contained in:
17
scripts/push_todos.py
Normal file
17
scripts/push_todos.py
Normal file
@ -0,0 +1,17 @@
|
||||
"""Push 4 key todos from the existing library to todo API."""
|
||||
import requests
|
||||
|
||||
todos = [
|
||||
"为心理黑箱绘制决策流程图,复盘日线震荡却做多的那一单",
|
||||
"为服务器AI设置即时调用接口,支持命令行快捷提问",
|
||||
"修复Dashboard的初始金额和策略编号显示错误",
|
||||
"为倒计时建立仪式感:在Memos创建告别笔记标签",
|
||||
]
|
||||
|
||||
for text in todos:
|
||||
r = requests.post("http://127.0.0.1:9001/api/todos",
|
||||
json={"text": text, "source": "inspiration"}, timeout=5)
|
||||
print(f" {r.status_code}: {text[:40]}")
|
||||
|
||||
r = requests.get("http://127.0.0.1:9001/api/todos", timeout=5)
|
||||
print(f"\nTotal todos: {len(r.json()['todos'])}")
|
||||
Reference in New Issue
Block a user