summaryrefslogtreecommitdiffstats
path: root/askbot/tasks.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2011-04-25 19:05:07 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2011-04-25 19:05:07 -0400
commitbe238ebf2de60f3bcc0e3cc9323579065a16988b (patch)
treeea4f9d3f9dcb6a9d23e2f4bd20b5f166157f4ebe /askbot/tasks.py
parent2f9a86c3563a99136be216db3a24df2ffa1d1d4c (diff)
downloadaskbot-be238ebf2de60f3bcc0e3cc9323579065a16988b.tar.gz
askbot-be238ebf2de60f3bcc0e3cc9323579065a16988b.tar.bz2
askbot-be238ebf2de60f3bcc0e3cc9323579065a16988b.zip
made user response counts update by actually counting items in the database
Diffstat (limited to 'askbot/tasks.py')
-rw-r--r--askbot/tasks.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/askbot/tasks.py b/askbot/tasks.py
index 8dfea5b4..caa33c64 100644
--- a/askbot/tasks.py
+++ b/askbot/tasks.py
@@ -93,9 +93,8 @@ def record_post_update(
assert(updated_by not in recipients)
- for user in set(recipients) | set(newly_mentioned_users):
- user.increment_response_count()
- user.save()
+ for user in (set(recipients) | set(newly_mentioned_users)):
+ user.update_response_counts()
#todo: weird thing is that only comments need the recipients
#todo: debug these calls and then uncomment in the repo