From c5d9b39f0675e3072739a955a05265335d94392f Mon Sep 17 00:00:00 2001 From: Darks Date: Mon, 9 Sep 2019 14:22:55 +0200 Subject: [PATCH] Correction d'un bug --- app/models/forum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/forum.py b/app/models/forum.py index c459375..71d2381 100644 --- a/app/models/forum.py +++ b/app/models/forum.py @@ -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)