Mercurial > public > sg101
comparison gpp/accounts/tasks.py @ 520:e94570675664
Created stats for users (number of users and list of newest users).
Better separated the forums, who's online, and user stats.
Use a Celery task to execute the new user stats processing.
This addresses #194 and #238.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 17 Dec 2011 23:19:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
519:f72ace06658a | 520:e94570675664 |
---|---|
1 """ | |
2 Celery tasks for the accounts application. | |
3 | |
4 """ | |
5 from celery.task import task | |
6 | |
7 from accounts.stats import update_user_stats | |
8 | |
9 | |
10 @task | |
11 def user_stats_task(user_id): | |
12 """ | |
13 Run the update_user_stats() function on a new task. | |
14 | |
15 """ | |
16 update_user_stats(user_id) |