Commit d44a3be55961b02c0c1138a0c18c5edbe7c47da6
1 parent
71708de4
Exists in
master
and in
39 other branches
Fix thread view page
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
colab/super_archives/models.py
@@ -190,7 +190,7 @@ class Thread(models.Model, HitCounterModelMixin): | @@ -190,7 +190,7 @@ class Thread(models.Model, HitCounterModelMixin): | ||
190 | return (self.now - date).days | 190 | return (self.now - date).days |
191 | 191 | ||
192 | def _get_score(self, weight, created): | 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 | def update_score(self): | 195 | def update_score(self): |
196 | """Update the relevance score for this thread. | 196 | """Update the relevance score for this thread. |