small changes in vote_count properties

This commit is contained in:
SvyatoslavArtymovych 2023-05-10 15:38:04 +03:00
parent bfacc1ceb8
commit 93dd077514
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ class Comment(BaseModel):
for vote in self.votes:
if vote.positive:
count += 1
else:
continue
count -= 1
return count

View File

@ -36,7 +36,7 @@ class Interpretation(BaseModel):
for vote in self.votes:
if vote.positive:
count += 1
else:
continue
count -= 1
return count