Compare commits
2 Commits
e3e38fde6f
...
aebe09de68
Author | SHA1 | Date |
---|---|---|
Darks | aebe09de68 | |
Darks | c5d9b39f06 |
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue