summaryrefslogtreecommitdiffstats
path: root/askbot/auth.py
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-10-02 19:14:57 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-10-02 19:14:57 -0600
commitbce103ac7af62b299b5770a2574658d19ac18790 (patch)
tree0b34fc8f4204984285c1ddeee6729ee12b646d97 /askbot/auth.py
parent2a398269923b779b63ca8432b6d98dc2ae6c6a50 (diff)
downloadaskbot-bce103ac7af62b299b5770a2574658d19ac18790.tar.gz
askbot-bce103ac7af62b299b5770a2574658d19ac18790.tar.bz2
askbot-bce103ac7af62b299b5770a2574658d19ac18790.zip
fixing some tests and merge errors, commit before the lights goes out
Diffstat (limited to 'askbot/auth.py')
-rw-r--r--askbot/auth.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/askbot/auth.py b/askbot/auth.py
index c80f5db1..846445b4 100644
--- a/askbot/auth.py
+++ b/askbot/auth.py
@@ -238,7 +238,7 @@ def onAnswerAcceptCanceled(answer, user, timestamp=None):
reputation.save()
if answer.author == question.author and user == question.author:
- #a symmettric measure for the reputation gaming plug
+ #a symmettric measure for the reputation gaming plug
#as in the onAnswerAccept function
#here it protects the user from uwanted reputation loss
return
@@ -263,7 +263,7 @@ def onUpVoted(vote, post, user, timestamp=None):
if post.post_type != 'comment':
post.vote_up_count = int(post.vote_up_count) + 1
- post.score = int(post.score) + 1
+ post.points = int(post.points) + 1
post.save()
if post.post_type == 'comment':
@@ -300,7 +300,7 @@ def onUpVotedCanceled(vote, post, user, timestamp=None):
if post.vote_up_count < 0:
post.vote_up_count = 0
- post.score = int(post.score) - 1
+ post.points = int(post.points) - 1
post.save()
if post.post_type == 'comment':
@@ -333,7 +333,7 @@ def onDownVoted(vote, post, user, timestamp=None):
vote.save()
post.vote_down_count = int(post.vote_down_count) + 1
- post.score = int(post.score) - 1
+ post.points = int(post.points) - 1
post.save()
if not (post.wiki or post.is_anonymous):
@@ -375,7 +375,7 @@ def onDownVotedCanceled(vote, post, user, timestamp=None):
post.vote_down_count = int(post.vote_down_count) - 1
if post.vote_down_count < 0:
post.vote_down_count = 0
- post.score = post.score + 1
+ post.points = post.points + 1
post.save()
if not (post.wiki or post.is_anonymous):