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,8 +39,8 @@ class Comment(BaseModel):
|
||||||
for vote in self.votes:
|
for vote in self.votes:
|
||||||
if vote.positive:
|
if vote.positive:
|
||||||
count += 1
|
count += 1
|
||||||
else:
|
continue
|
||||||
count -= 1
|
count -= 1
|
||||||
|
|
||||||
return count
|
return count
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,8 @@ class Interpretation(BaseModel):
|
||||||
for vote in self.votes:
|
for vote in self.votes:
|
||||||
if vote.positive:
|
if vote.positive:
|
||||||
count += 1
|
count += 1
|
||||||
else:
|
continue
|
||||||
count -= 1
|
count -= 1
|
||||||
|
|
||||||
return count
|
return count
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue