v1.4.2: 修复日报/定制汇总重复发送刷屏(_maybe_daily元组嵌套bug+发送日期持久化) + 一键全部启用/停用 + 数据源快速筛选
This commit is contained in:
@@ -189,6 +189,12 @@ def api_sources():
|
||||
s = db.get_source(data["id"])
|
||||
db.update_source(data["id"], enabled=0 if s["enabled"] else 1)
|
||||
return jsonify({"ok": True})
|
||||
if action == "enable_all":
|
||||
n = db.set_all_sources_enabled(1)
|
||||
return jsonify({"ok": True, "count": n})
|
||||
if action == "disable_all":
|
||||
n = db.set_all_sources_enabled(0)
|
||||
return jsonify({"ok": True, "count": n})
|
||||
if action == "test_standard":
|
||||
# 定制监控:用大模型测试「推送标准」是否好使(给一段示例内容看判不判得出)
|
||||
standard = (data.get("monitor_standard") or "").strip()
|
||||
|
||||
Reference in New Issue
Block a user