v1.4.2: 修复日报/定制汇总重复发送刷屏(_maybe_daily元组嵌套bug+发送日期持久化) + 一键全部启用/停用 + 数据源快速筛选

This commit is contained in:
2026-08-31 12:27:35 +08:00
parent c9671880e8
commit 3f6abe7ad6
5 changed files with 91 additions and 14 deletions
+6
View File
@@ -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()