Merge pull request #81 from miniyk2012/patch-1

修复函数名
This commit is contained in:
piglei 2022-01-25 21:38:28 +08:00 committed by GitHub
commit a49e63b428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')
```