修改了部分bot代码,增加了super过滤器,修改了md文档

This commit is contained in:
:NoBody: committed 2026-04-13 22:08:48 +08:00
1 parent 99869ac3ad
commit 39645baed4
12 files changed
+180 -18

No files matched your search

+5
View File
@@ -70,6 +70,10 @@ impl ScheduleHandler {
);
log::info!("[daily_report] load_all_user_state: begin");
let states = db.get_all_user_state().await?;
let states = states
.iter()
.filter(|(_, state)| !crate::db::filter::super_filter(state))
.collect::<Vec<_>>();
log::info!(
"[daily_report] load_all_user_state: done, state_count={}",
states.len()
@@ -112,6 +116,7 @@ impl ScheduleHandler {
.await?
.into_iter()
.filter(|(_, state)| !state.is_checkin_today)
.filter(|(_, state)| !crate::db::filter::super_filter(state))
.map(|(user_id, _)| user_id)
.collect::<Vec<String>>()
.join(" ,\n");