Commit 256ed7855be4c218f6d3d38a7bbf4a9f762d2bff
Exists in
master
and in
39 other branches
Merge remote-tracking branch 'origin/fix_thread'
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. |