Browse Source

Remove rounding for Exemplary comments' relevance

merge-requests/40/head
Deimos 6 years ago
parent
commit
f0a45e7493
  1. 2
      tildes/tildes/models/comment/comment_tree.py

2
tildes/tildes/models/comment/comment_tree.py

@ -295,6 +295,6 @@ class CommentInTree(ObjectProxy):
# and multiply the vote count by that. For example, weight 1.0 = votes doubled.
if self.is_label_active("exemplary"):
multiplier = self.label_weights["exemplary"] + 1.0
return (round(multiplier * self.num_votes),)
return (multiplier * self.num_votes,)
return (self.num_votes,)
Loading…
Cancel
Save