diff --git a/nyaa/models.py b/nyaa/models.py index 5d386da..18178d6 100755 --- a/nyaa/models.py +++ b/nyaa/models.py @@ -110,7 +110,7 @@ class Torrent(db.Model): return '<{0} #{1.id} \'{1.display_name}\' {1.filesize}b>'.format(type(self).__name__, self) def update_comment_count(self): - self.comment_count = Comment.query.filter_by(torrent_id = self.id).count() + self.comment_count = Comment.query.filter_by(torrent_id=self.id).count() return self.comment_count @property