Correction d'un bug

This commit is contained in:
Darks 2019-09-09 14:22:55 +02:00
parent e0dc6944f7
commit c5d9b39f06
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 1 additions and 1 deletions

View File

@ -37,4 +37,4 @@ class Forum(db.Model):
def post_count(self):
"""Number of posts in every topic of the forum, without subforums."""
return sum(len(thread.comments) for thread in self.topics)
return sum(len(t.thread.comments) for t in self.topics)