Merge Request #43
← To merge requests
From
fix_thread
into
master
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.
Commits (1)
-
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
1 changed file
Show diff stats
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. | ... | ... |