Merge pull request #68 from GaochaoZhu/master

修复【9.一个关于模块的小故事】代码示例中bug
This commit is contained in:
piglei 2021-05-19 17:26:07 +08:00 committed by GitHub
commit 40529a62db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ from fancy_site.marketing import query_user_points
def main():
"""获取所有的活跃用户,将积分情况发送给他们"""
users = get_active_users()
points = list_user_points(users)
users = list_active_users()
points = query_user_points(users)
for user in users:
user.add_notification(... ...)
# <... 已省略 ...>