user: FIX problème de perf à l'affichage

Le serveur aime pas devoir recalculer à chaque fois le nombre de 
commentaires de chaque topic
This commit is contained in:
Darks 2020-07-23 20:46:30 +02:00
parent 3a46f8046c
commit 4117ec4b15
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 0 additions and 2 deletions

View File

@ -67,14 +67,12 @@
<th>Titre</th>
<th>Forum</th>
<th>Création</th>
<th>Commentaires</th>
</tr>
{% for t in member.topics %}
<tr>
<td><a href="{{ url_for('forum_topic', f=t.forum, page=(t, 1)) }}">{{ t.title }}</a></td>
<td><a href="{{ url_for('forum_page', f=t.forum) }}">{{ t.forum.name }}</a></td>
<td>Le {{ t.date_created|date }}</td>
<td>{{ t.thread.comments.count() }}</td>
</tr>
{% endfor %}
</table>