From ef7d35ea91f3748b44dfed15b2065366cb46716d Mon Sep 17 00:00:00 2001 From: Thomas Young Date: Tue, 25 Jan 2022 21:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh_CN/7-two-tips-on-loop-writing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh_CN/7-two-tips-on-loop-writing.md b/zh_CN/7-two-tips-on-loop-writing.md index 485e260..c7578c3 100644 --- a/zh_CN/7-two-tips-on-loop-writing.md +++ b/zh_CN/7-two-tips-on-loop-writing.md @@ -285,7 +285,7 @@ def award_active_users_in_last_30days_v2(): def notify_nonsleep_users_in_last_30days(): """发送通知""" - for ts_start, ts_end in gen_weekend_ts_range(30, hour_start=3, hour_end=6): + for ts_start, ts_end in gen_weekend_ts_ranges(30, hour_start=3, hour_end=6): for record in LoginRecord.filter_by_range(ts_start, ts_end): notify_user(record.user_id, 'You should sleep more') ```