mirror of https://github.com/logos-co/open-law.git
small changes in vote_count properties
This commit is contained in:
parent
bfacc1ceb8
commit
93dd077514
|
@ -39,7 +39,7 @@ class Comment(BaseModel):
|
|||
for vote in self.votes:
|
||||
if vote.positive:
|
||||
count += 1
|
||||
else:
|
||||
continue
|
||||
count -= 1
|
||||
|
||||
return count
|
||||
|
|
|
@ -36,7 +36,7 @@ class Interpretation(BaseModel):
|
|||
for vote in self.votes:
|
||||
if vote.positive:
|
||||
count += 1
|
||||
else:
|
||||
continue
|
||||
count -= 1
|
||||
|
||||
return count
|
||||
|
|
Loading…
Reference in New Issue