Merge Request #43

Merged
softwarepublico/colab!43
Created by Gustavo Jaruga Cruz

Fix thread view page

Critical bug fix.

The method has the wrong name... private_mailman_lists branch also solves this, but due to its impact, making this MR to fix it earlier.

Assignee: Sergio Oliveira
Milestone: None

Merged by Sergio Oliveira

Source branch has been removed
Commits (1)
2 participants
colab/super_archives/models.py
... ... @@ -190,7 +190,7 @@ class Thread(models.Model, HitCounterModelMixin):
190 190 return (self.now - date).days
191 191  
192 192 def _get_score(self, weight, created):
193   - return max(weight - (self.days_ago(created) // 3), 5)
  193 + return max(weight - (self._days_ago(created) // 3), 5)
194 194  
195 195 def update_score(self):
196 196 """Update the relevance score for this thread.
... ...