Commit ffe144e0 authored by Jamesie Pic's avatar Jamesie Pic

Oh, just fixed score update ^^

parent 8ff84b92
......@@ -63,8 +63,11 @@ class MemopolVote(Vote):
def absolute_score(self):
if self.proposal.recommendation:
if not self.proposal.recommendation_id:
return 0
recommendation = self.proposal.recommendation
weight = recommendation.weight
if (self.position == 'abstain' or
recommendation.recommendation == 'abstain'):
......@@ -73,8 +76,6 @@ class MemopolVote(Vote):
return weight
return -weight
return 0
def vote_pre_import(sender, vote_data=None, **kwargs):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment