Compare commits

...

2 Commits

Author SHA1 Message Date
Darks aebe09de68
Merge branch 'dev' of gitea.planet-casio.com:devs/PCv5 into dev 2019-09-09 14:55:04 +02:00
Darks c5d9b39f06
Correction d'un bug 2019-09-09 14:22:55 +02:00
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)